Closed Mulesoft-Mysti closed 5 years ago
My build command: antora --clean build-all.yml
I built using the attached .yml file and the Glossary worked OK for me with no Page Not Found errors. I used these commands:
antora build.yml open build/site/index.html
I wonder if this might be some quirk related to using "serve" instead of "open". If you use "open" to view the files, do all the links work OK on your machine?
(The icons in the left menu will appear as broken images when using "open", but this is safe to ignore.)
Sorry, forgot to explain: I changed your .yml file only by making the paths correct for my local setup.
OK, I am now able to reproduce this.
You saw the Page Not Found error for the URL localhost:5000/getting-started/glossary . Indeed, that is a bad URL. The correct URL is localhost:5000/general/getting-started/glossary .
When I use the "serve" command and open http://localhost:5000/general , all the links to other files in that node are bad links, such as http://localhost:5000/getting-started/check-published-api-specs and http://localhost:5000/getting-started/glossary . Links to files in other nodes are OK.
Workaround: Use the left menu to go to a file in another node. Then use the left menu to go to the glossary.
This is inconvenient, and I wish I knew how to prevent the problem, but at least we have a workaround.
Using "open" instead of "serve" also seems to work around this error.
I added this to the Troubleshooting section of the Local Builds file. https://docs.google.com/document/d/1TzGgG4OuK5fjEBu4wCRs-Pu6zt0jRLc7EQozG52JaPM/
Adding a glossary: Will & Fer, when I tested this locally, the glossary.html was created and looked correct on my local machine, and the left nav showed the link for glossary, but when I clicked the link in my local build, I got the Page Not Found error. Could you look at this and see if I've done something wrong?