git-man-page-generator-legacy icon indicating copy to clipboard operation
git-man-page-generator-legacy copied to clipboard

see also links

Open allo- opened this issue 10 years ago • 4 comments

The links in the "see also" section should be permalinks to the corrosponding command

allo- avatar May 31 '14 19:05 allo-

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.

sersorrel avatar Jan 04 '15 18:01 sersorrel

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.

allo- avatar Jan 09 '15 20:01 allo-

That would lead to infinite recursion of generating the linked pages from the linked pages.

taybin avatar Feb 19 '16 20:02 taybin

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.

allo- avatar Feb 19 '16 20:02 allo-