Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Automatically split file into chapters and sections

Started by Getoar Mjeku 9 years ago · 0 replies · 1563 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, 1 year ago
6 1662 1 year ago
Content & Markdown · by Ton Haarmans, 2 years ago
10 1234 2 years ago
Content & Markdown · by Jan L'Am, 2 years ago
4 1098 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 1001 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1491 2 years ago