Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Automatically split file into chapters and sections

Started by Getoar Mjeku 8 years ago · 0 replies · 1167 views
8 years ago

Is there a tool that would automatically split a larger text file into chapters and sections? I'd like to use it with the Learn theme for documentation and legal documents.

For example, I have software documentation or a city ordinance in a single markdown document. Chapter and section or article headings are properly marked. I would now like to create separate folders and Markdown files for each chapter and section.

Preferably, I'd also like to be able to view the whole document or select chapter or sections only. After I have separated the document into chapters and sections, I would like to retain the option to view the whole document on one page. I particularly wish to view a complete chapter containing all sections. This makes research much more efficient.

Thank you,
Getoar

See also: /forum/content-markdown/grav-and-markdown-for-legal-documents-t790?u=gmjeku

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 96 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 184 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 147 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 61 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 255 1 year ago