Serving pages without .html and idealized folder structure #25
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
campaign-blocker
consider soon
Content
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry.tech#25
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
index.md
)..html
or an indication of the folder structure. E.g. lbry.tech/repository-standards should serve the Markdown file located atresources/repository-stanards.md
).We are currently using Node.js + express. I tried implementing this but the internal links in Vuepress will not work with this.
Here is the related issue on Vuepress repo.
So their solution this currently is that if you want to make for example page /resources, you can make resources/index.md, which will work. I would personally much rather have working rewrites though :)
I have now spent a day researching this, and I am afraid this is currently not possible.
It's easy to set express rewrite rules to remove .html extension from urls, but in addition Vuepress uses it's own Vue-router to handle internal links. It generates a router config object on startup and this cannot be dynamically changed later. And it doesn't seem to offer any way for plugins to modify it.
So is the solution to source each article from a folder?
@Krisseck this issue has been edited based on discussion on standup today. I know Vuepress may not make this that easy. If it's non-trivial to reach the ideal specified above, please let me know how close we can get.
Made a new branch for this: https://github.com/lbryio/lbry.tech/tree/content-reorganize