testingisdocumenting / znai

Build functional, maintainable, beautiful User Guides with markdown and Znai plugins. Instant pages navigation. Local search. Multiple integrations to work with Python, Java, C++, OpenAPI, etc. Transform "getting started" sections into slideshow for your workshops. Manage multiple documentations with self-deployed znai hub.
https://testingisdocumenting.org/znai
Apache License 2.0
241 stars 13 forks source link

`viewOn` link generation is broken #1210

Closed godexsoft closed 1 month ago

godexsoft commented 1 month ago

Version: 1.69

meta.json:

{
  "title": "Functional",
  "type": "Library",
  "viewOn": {
    "link": "https://github.com/libfn/functional/docs",
    "title": "View On GitHub"
  }
}

This generates good URLs on pages from toc but not on the landing/index page (index.md). This is what i get generated on the landing page of the doc: https://github.com/libfn/functional/docs//index. And this is what other pages generate: https://github.com/libfn/functional/docs/reference-manual/[PAGENAME].md

My toc got reference-manual at its root followed by each [PAGENAME]. It's also worth noting that i generate the docs passing --doc-id '""'. This may be related to the issue as support for it was recently added.