unisonweb / website

Main Unison website
MIT License
8 stars 5 forks source link

Adjust build script for new docs.to-html command #78

Closed hojberg closed 4 months ago

hojberg commented 4 months ago

There's a new : option for the docs.to-html command. Start using that and adjust the build script to do the renaming of learn and feed (to docs and blog respectively) instead of relying on the transcript to do that.

rlmark commented 4 months ago

I tested this locally and these changes get us much farther along in the build process (hooray!) but it appears docs linking does not function as expected for terms that directly reference Unison docs like this: {{This is a doc with a link to the {tour} document}}.

This creates an href link to "http://localhost:2345/docs/learn/tour" but the page is located at "http://localhost:2345/docs/at-a-glance/"

I also tested changing the actual namespace to docs in the codebase and it eliminates the need to copy from learn to docs, so why don't I make that change (and the change from feed -> blog), in which case this PR can just be the change to the transcript.

hojberg commented 4 months ago

Sounds good to me!