oranda
oranda copied to clipboard
How to link to an additional page from README?
I have a feature overview on https://untitaker.github.io/spacemod/ where I would like to link into the "Matching modes" page.
I would like my README to link to ./docs/matching.md (so following the link in GitHub's UI works), while the oranda landing page should link to https://untitaker.github.io/spacemod/matching/.
Is that possible or should I go with mdbook? I find mdbook overkill for simple docs.
Hey! I believe this is a shortcoming with our current approach to additional pages - we rewrite the page paths for you, meaning that any subdirectory is discarded, which is why using a relative link like that currently does not work, but it's definitely something I personally want to make work in the future.
from my testing the link is not being rewritten at all:
<h2>Matching Modes</h2>
<p>By default, you use regexes to replace text. See <a href="./docs/matching.md" rel="noopener noreferrer">Matching
modes</a> for the alternative modes that <code>spacemod</code> supports.</p>
<h2>Alternatives</h2>
<p>There are many tools like <code>spacemod</code>, some of which may suit your needs better. Take a look at <a href="./docs/alternatives.md" rel="noopener noreferrer">Alternatives</a>.</p>
<h2>License</h2>
above html snippet is directly from https://untitaker.github.io/spacemod/, README is at https://github.com/untitaker/spacemod/blob/main/README.md
Oh, in that case that's definitely a bug we should fix ASAP. Will reproduce and file an issue separately
@shadows-withal I don't think this got fully fixed in 0.1.0. Adding a subpage from a subdirectory already worked before the fix afaict. the problem is links to it in the README
check out this PR: https://github.com/untitaker/spacemod/pull/21
and run oranda dev, then try clicking on "Matching modes" further down the page. it directs to localhost/docs/matching.md when the correct link would be localhost/spacemod/matching/
but then i don't know if that was ever intended to work at all
Yeah we don't yet support that. I've sketched out part of the implementation here: https://github.com/axodotdev/oranda/pull/512