Aylur / ags-docs

Documentation for Aylur's GTK Shell
11 stars 27 forks source link

Fix relative links by removing "trailing slash" #5

Closed ehanahamed closed 8 months ago

ehanahamed commented 8 months ago

closes #4

Astro's default build.format value is "directory", so by default, folder/example.md in the source code becomes folder/example/index.html on the actual website.

That broke relative links that were supposed to be fixed by pull request #1

For example, a link going to ../ex2 from folder/ex1 would go to ex2 in the source code (yay), but a link going to ../ex2 from folder/ex1/index.html would go to folder/ex2 in the actual website (not yay), relative links are broken when Astro builds each source file as a directory.

So this pull request fixes that by setting build.format to "file", so for example, folder/example.md will now become folder/example.html, so relative links work again. (yay)