Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Automatically split file into chapters and sections

Started by Getoar Mjeku 9 years ago · 0 replies · 1404 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 962 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 764 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 676 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 602 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 985 2 years ago