Hi I am building a website to upload some of my work. The website is made up of project documentation. I split up the documentation for a project in pages which are sections and the corresponding subsections.
Here is the overall structure of the the source. I used _ instead o blank space to give the gist of the organization because space are erased.
├── index.html
├── _layouts
___└── documentation.html
├── _projects
___└── project1
_____└── 01_introductoin.md
_______└── 01_1_paragraph1.md (These are in the same directory but logically they are part of the section introduction)
_______└── 01_2_paragraph2.md
_____└── 02_implmentation.md
_______└── 02_1_paragraph1.md
_______└── 02_2_paragraph2.md
__└── project2
_____└── same_pattern…
Each page is made up of a section file (01_introduction.md) and the corresponding subsection files( 01_1_paragraph.ms…).
To do that the layout file documentation.html shows first of all the content of a section, and go through all the subsection printing just the one that “belong” to the above section. I preserved the order I wanted thanks to how I called the single files.
Nevertheless since there is this implicit structure, I also wanted to enumerate such paragraphs automatically, in a Latex fashion(without adding more properties to the relative page).
For example for the page relative to section “Introduction” I would like to have something like this:
- Introduction
some text
1 . 1 Subsection 1
some text
1 . 2 Sebsection 2
some text
And for the page relative to “Implementation”
- Implementaion
some text
2 . 1 Subsection 1
some teext
2 . 2 Subsection 2
some text
Since I am a newbie in Jekyll I don’t know if it is possible and which tools should I use.
I hope anyone could give me a hint, and thank you in advance.