git-man-page-generator-legacy
git-man-page-generator-legacy copied to clipboard
see also links
The links in the "see also" section should be permalinks to the corrosponding command
Instead of permalinks, they could presumably just have (say) a GET argument/parameter/thing which replaces the title, given that I assume no articles are actually stored.
I guess the way to go would be to generate the linked article, extract the title and then use it for the link, because the articles are generated from the randomseed in the link, if i see it correctly.
That would lead to infinite recursion of generating the linked pages from the linked pages.
Hmm, i though you generate the permalinks by using the hash-value as random seed or something similiar?
Then you could try to generate a random random-seed, then generate the next page, extract the title and link with the title to the next page. The "see also" links on the next page are NOT generated in this step, so there should be no further recursion.
Steps:
- generate the page content and title
- generate 3 random hashes
- generate 3 new pages, especially the titles (rest isn't needed, yet), but not the "see also" section.
- add 3 links to the current page, using the generated titles of the linked pages.