pixelfed / docs

Pixelfed Documentation
https://docs.pixelfed.org
GNU Affero General Public License v3.0
174 stars 68 forks source link

Broken links in https://docs.pixelfed.org/ probably due to config.toml issues #102

Closed ambiamber closed 1 year ago

ambiamber commented 1 year ago

Description of issue:

I was browsing the documentation on https://docs.pixelfed.org/ and found broken links. When I looked at the markdown versions in this repo the links work.

Example:

This page: https://docs.pixelfed.org/technical-documentation/config/ has a link to this page: https://docs.pixelfed.org/technical-documentation/running-pixelfed/installation.md#configure-environment-variables

For a user-facing guide to which environment variables you might want to set, check out the <a href=../running-pixelfed/installation.md#configure-environment-variables>installation guide</a> instead.

In this repo I do not get a 404 viewing that content:

https://github.com/pixelfed/docs/blob/main/content/en/technical-documentation/config.md

For a user-facing guide to which environment variables you might want to set, check out the [installation guide](https://github.com/pixelfed/docs/blob/main/content/en/running-pixelfed/installation.md#configure-environment-variables) instead. {{}}
trwnh commented 1 year ago

oh, this would probably be an artifact of migrating from vuepress (which automatically translates .md links to html links) to hugo (which does not do that automatically by default)

trwnh commented 1 year ago

solved with https://github.com/bep/portable-hugo-links/blob/master/layouts/_default/_markup/render-link.html

trwnh commented 1 year ago

Fixed in https://github.com/pixelfed/docs/commit/b2c68f423ad90771e603eb50ca3df8374a01a225