Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Automatically split file into chapters and sections

Started by Getoar Mjeku 9 years ago · 0 replies · 1451 views
9 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, 11 months ago
6 1200 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 964 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 844 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 766 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1180 2 years ago