Skip to content

Internal page routing is not configured correctly #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
progzone122 opened this issue Dec 22, 2024 · 10 comments
Closed

Internal page routing is not configured correctly #3

progzone122 opened this issue Dec 22, 2024 · 10 comments

Comments

@progzone122
Copy link
Member

Routing similar links (which are not in the sidebar) to internal resources does not work correctly.
It seems that this needs to be configured, for example, as in the same React, Vue, etc.
Screenshot_20241222-102811.png

Screenshot_20241222-102555~2.png

Screenshot_20241222-102538.png

@shomykohai
Copy link
Collaborator

Weird,
I'm using docsify to make things easy, and on in local env the redirects works well.

I'll look this up right now.

Also, I'm gonna add you as a repo collaborator so it's easier to add more stuff that's missing if I miss the PRs (I don't get the notifications for this repo for some reason even if they're enabled)

@shomykohai
Copy link
Collaborator

It looks like docsify always starts the research of the file from the projects root, so to access a file in the dev directory from the dev directory again, we have to do

[Testpoints](dev/testpoints.md)

@shomykohai
Copy link
Collaborator

Fixed it, now relative paths are used instead (as it should have been from the start):

# from bootloader.md in dev/

[Testpoints](testpoints.md) 


# from testpoints in dev/

[Bootloader](bootloader.md)

@progzone122
Copy link
Member Author

Screenshot_20241222-111933.png

Now almost all the links from the sidebar are broken :(

@progzone122
Copy link
Member Author

Wttfff
Screenshot_20241222-112103~2.png

@shomykohai
Copy link
Collaborator

I noticed lol, looks like relatives links impact the sidebar too, even tho it lives in the root

@progzone122 progzone122 reopened this Dec 22, 2024
@shomykohai
Copy link
Collaborator

I'll have to make a different sidebar for every directory, or even better: find a way to make the sidebar ignore relative links

@shomykohai
Copy link
Collaborator

Seem to be an issue from docsify itself:

I'll make different sidebars for every directory so that we can still use relative paths

@shomykohai
Copy link
Collaborator

@progzone122 does it work now?
I tried using absolute paths instead of relative paths in the sidebar, and it works for me!

@progzone122
Copy link
Member Author

sidebar fixed
e81f8e6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants