You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improving the tooling/framework used for the doc (Jekyll currently) #1736
I’ve been talking with @crandmck about migrating the website to a newer technology that can save us from unnecessary work (for example, copying and pasting content to make it available in other languages, improving accessibility, JavaScript logic that doesn’t add much value to the documentation content, styles like text line spacing, etc.). This is work that can very likely be handled by the framework we choose to use.
While the focus so far has been on the content rather than the technical aspects, I think it’s time to make this change so we can finally focus solely on the content.
The important thing here is to choose a tool that is strong in several aspects, such as:
i18n
Accessibility
Ease of creating/modifying content
Preferably good Markdown support
Possible technologies that could be used for this change:
With all this in mind, I’d like to invite @expressjs/express-tc, @expressjs/docs-wg, and all members of this community to help us choose a good tool for the documentation.
This is a bold move, and I think it's a good moment to do it 👏 👏.
I have only a small amount of experience with Hugo and Eleventy. I’ve never used Astro, Starlight, or VitePress... but I am a great fan of Docusaurus, mainly because it is widely adopted by other projects in the foundation, such as Jest. We can learn a lot from their base code (https://github.com/jestjs/jest/tree/main/website), as they also support multiple versions of their product. This is something we should consider, like express@3, express@4, and express@5... as a requirement when doing the decision.
That said, I’m not very opinionated on the framework used.
Reacted by Carlos Stenzel, Sebastian Beltran and Hichem
I honestly don’t have any experience with these documentation generators (if that’s the word for them) but they all look good. I think Jekyll I works okay, but is quite inefficient and i also dislike the copy paste ideology and would love to get rid of it!
I guess I wonder how we even start this? Would we work on it along side the prod site until it’s ready?
It’s a good and exciting discussion to have
I feel like whoever is managing the website should just pick one and use it. So often we discuss tech when most of the time it's a matter of preference. And I feel like the person who's doing the work should be able to say what they want to use for the work. Sure, collaborate, think out loud, and give people an opportunity to discuss. But make sure to value making progress.
The only thing I don’t like about Docusaurus is that it doesn’t provide a fallback for content when it’s not available in another language, which would mean we’d end up copying and pasting (I don’t want that). Astro Starlight does handle that fallback, I need to take a closer look at the others.
Examples of how they behave in i18n when content doesn’t exist yet.
Please, if you have examples of how i18n works in the other technologies, share them.
I don’t want you to take this comment as me preferring one technology over another, I’m just valuing something that I think is important, which is i18n support.
I do not consider myself an expert in this space, so if in y'alls opinion another direction is better I am all good with that, but my vote goes to Docusaurus. I dislike the coupling to React in a general sense, but it is certainly the highest likelihood of having contributors easily on boarded to contribute.
A brief summary of how this migration will be done, there is no start date yet. If anyone wants to expand on it, for me that's fine, but I think this is the necessary information.
Choose the new tool (The website captains will choose it, we still need some time)(@expressjs/docs-captains)
We will create a list of tasks to be done to achieve this migration, so we can divide the tasks. (@expressjs/docs-wg)
We will create a new separate branch (@bjohansebas)
Once there are changes to review, we will open a draft PR. (Anyone with write permissions will be able to do it)
Note: We will follow the same process of creating PRs, not pushing directly to the branch.
Thanks for kicking off this discussion and being dedicated to improving the docs site! I wanted to share some thoughts, not as a pushback but to make sure we're solving the right problems in the best way.
What's the core problem we are solving?
From what I understand and am reading here, translation management is the biggest issue. Specifically needing to sync translations with the english version as the english updates.
Docusaurus alone doesnt fix that, but does provide a paved path to Crowdin integration which provides a much nicer interface for translators. The real win there is Crowdin integration, which we can implement regardless of whether we use Jekyll, Docusaurus, or another framework.
Should we migrate? Or first fix the biggest issue?
Beyond translation, other raised concerns are accessibility, styling, JavaScript overhead, authoring experience. These are important, but let's make sure a migration would meaningfully improve these areas rather than shifting the work elsewhere.
For consideration:
Jekyll is not inherently inaccessible. We can make incremental improvements without migrating. What specific accessibility issues are we experiencing now?
Styling can be improved by switching to a better jekyll theme rather than switching to a new platform entirely. (I'll talk more about this in another section)
Reducing unnecessary JavaScript is a good goal, but it would be helpful to clarify what specific issues we're looking to solve here. A single page application moves us further away from reducing JS on page than what we have now, so are we talking about JS scripts we have written ourselves?
Authoring experience for jekyll and another framework would be largely the same, if we are sticking to mostly writing markdown.
For those who have worked with Docusaurus (or other suggested tools), do you feel the trade offs justify a migration, or are there other specific benefits that haven’t been captured yet?
Are there other issues not captured in this discussion?
I said Id touch on styling again. I think the background to this conversation is that our site is currently ugly and clunky.
Since we own the theme, we own fixing that. We own the accessibility story, the look and feel of the site. And the local dev experience of Jekyll is clunky and outdated to JS devs.
So is the root of this discussion, the big problem we want to solve, that no one wants to improve the theme of our Jekyll site or work with Jekyll tooling?
The biggest benefit I see to switching to a new framework is that we get a new theme and don't have to invest in accessibility or design time. We can piggyback on well maintained themes from someone else. As soon as we deviate from that, by writing custom components and styling, we lose that benefit and are back to maintaining the theme ourselves. We also have built custom tooling into our site, to grab external readmes as an example, which increases maintenance burden and complexity.
If the root issue is not wanting to maintain our own theme, should we be framing this discussion around finding a good out of the box solution rather than focusing on translation or accessibility? If so, what existing themes in Docusaurus, Hugo, or other options stand out as strong contenders?
The above is a more compelling reason to switch to me than the other things outlined previously. But with that comes unknown unknowns, we can't shake all those out before making a decision either way, so being crystal clear first on what we are solving for and how we think a migration can improve things is crucial.
I think it would be really helpful to get more clarity on what people see as the biggest blockers with Jekyll beyond i18n. If we can clearly define what’s painful, we’ll have a stronger case for either fixing it incrementally or migrating with confidence.
@expressjs/docs-wg, what do you think? Should we stick with Jekyll?
I don't want to block the maintenance of the page either, that's why I want to know, so we can either close this or keep discussing it. (I say this because, with this issue, you probably don't know whether to keep working on something or wait to make a decision)
Probably, we need to see the support GitHub wants to give to Jekyll. I mean, GitHub hasn't updated pages-gem in a while, Jekyll 4 (which will likely make my build faster) was released over 5 years ago, and GitHub wants to use version 3.10.0. They have several open PRs updating the tools, but there isn't much movement on them wanting to maintain it
For now, we are going to stick with Jekyll since we will be using Crowdin for i18n (which means we no longer have to copy and paste), and we have been separating the content from the layout, making the page more maintainable. It also seems that the documentation team is fine with this since they haven’t responded to this message.
We can always reopen this issue and discuss it again if maintaining the page truly becomes difficult. I have opened several issues to improve the current configuration, which are currently being worked on.
I wouldn't want to maintain the current page design, but I can live with it and still improve it, as my main goal is to enhance the experience of using the documentation.
Thanks to everyone who shared their comments—I’m glad to see that the community supports changes like this.
Im OK staying with Jekyll since it’s not react based and it’s simple. And no copy paste solves biggest issue. Would be nice to have something that loads faster in dev in the future.
Docusurus looks very nice though. Maybe a we can run a staging env to try it out?
For those who aren't aware, express is planning a complete redesign. That's why I'm reopening this discussion, we need to clearly define the stack we're going to use for the redesign. There have been suggestions to use web components (as mentioned in the last meeting). It also needs to be easy to maintain
Docusaurus (React and MDX) imo is the best option in terms of features, customizability, maintainability, and popularity.
I see no reason to go with anything else, if anyone has a convincing argument against docusaurus then i'm all ears
Activity
UlisesGascon commentedon Jan 22, 2025
This is a bold move, and I think it's a good moment to do it 👏 👏.
I have only a small amount of experience with Hugo and Eleventy. I’ve never used Astro, Starlight, or VitePress... but I am a great fan of Docusaurus, mainly because it is widely adopted by other projects in the foundation, such as Jest. We can learn a lot from their base code (https://github.com/jestjs/jest/tree/main/website), as they also support multiple versions of their product. This is something we should consider, like express@3, express@4, and express@5... as a requirement when doing the decision.
That said, I’m not very opinionated on the framework used.
carlosstenzel commentedon Jan 22, 2025
I like the idea of using Docusaurus too
chrisdel101 commentedon Jan 22, 2025
I honestly don’t have any experience with these documentation generators (if that’s the word for them) but they all look good. I think Jekyll I works okay, but is quite inefficient and i also dislike the copy paste ideology and would love to get rid of it!
I guess I wonder how we even start this? Would we work on it along side the prod site until it’s ready?
It’s a good and exciting discussion to have
joeyguerra commentedon Jan 22, 2025
I feel like whoever is managing the website should just pick one and use it. So often we discuss tech when most of the time it's a matter of preference. And I feel like the person who's doing the work should be able to say what they want to use for the work. Sure, collaborate, think out loud, and give people an opportunity to discuss. But make sure to value making progress.
+1 fo Docusaurus. ;)
bjohansebas commentedon Jan 22, 2025
The only thing I don’t like about Docusaurus is that it doesn’t provide a fallback for content when it’s not available in another language, which would mean we’d end up copying and pasting (I don’t want that). Astro Starlight does handle that fallback, I need to take a closer look at the others.
Examples of how they behave in i18n when content doesn’t exist yet.
I don’t want you to take this comment as me preferring one technology over another, I’m just valuing something that I think is important, which is i18n support.
bjohansebas commentedon Jan 22, 2025
I have been researching and creating a list of the advantages of some of them:
Docusaurus:
Pros:
Cons:
Astro Starlight:
Pros:
Cons:
Eleventy:
Pros:
Cons:
If I had to choose, it would be Starlight or Docusaurus
wesleytodd commentedon Jan 22, 2025
I do not consider myself an expert in this space, so if in y'alls opinion another direction is better I am all good with that, but my vote goes to Docusaurus. I dislike the coupling to React in a general sense, but it is certainly the highest likelihood of having contributors easily on boarded to contribute.
bjohansebas commentedon Jan 24, 2025
A brief summary of how this migration will be done, there is no start date yet. If anyone wants to expand on it, for me that's fine, but I think this is the necessary information.
Note: We will follow the same process of creating PRs, not pushing directly to the branch.
jonchurch commentedon Jan 29, 2025
Thanks for kicking off this discussion and being dedicated to improving the docs site! I wanted to share some thoughts, not as a pushback but to make sure we're solving the right problems in the best way.
What's the core problem we are solving?
From what I understand and am reading here, translation management is the biggest issue. Specifically needing to sync translations with the english version as the english updates.
Docusaurus alone doesnt fix that, but does provide a paved path to Crowdin integration which provides a much nicer interface for translators. The real win there is Crowdin integration, which we can implement regardless of whether we use Jekyll, Docusaurus, or another framework.
Should we migrate? Or first fix the biggest issue?
Beyond translation, other raised concerns are accessibility, styling, JavaScript overhead, authoring experience. These are important, but let's make sure a migration would meaningfully improve these areas rather than shifting the work elsewhere.
For consideration:
For those who have worked with Docusaurus (or other suggested tools), do you feel the trade offs justify a migration, or are there other specific benefits that haven’t been captured yet?
Are there other issues not captured in this discussion?
I said Id touch on styling again. I think the background to this conversation is that our site is currently ugly and clunky.
Since we own the theme, we own fixing that. We own the accessibility story, the look and feel of the site. And the local dev experience of Jekyll is clunky and outdated to JS devs.
So is the root of this discussion, the big problem we want to solve, that no one wants to improve the theme of our Jekyll site or work with Jekyll tooling?
The biggest benefit I see to switching to a new framework is that we get a new theme and don't have to invest in accessibility or design time. We can piggyback on well maintained themes from someone else. As soon as we deviate from that, by writing custom components and styling, we lose that benefit and are back to maintaining the theme ourselves. We also have built custom tooling into our site, to grab external readmes as an example, which increases maintenance burden and complexity.
If the root issue is not wanting to maintain our own theme, should we be framing this discussion around finding a good out of the box solution rather than focusing on translation or accessibility? If so, what existing themes in Docusaurus, Hugo, or other options stand out as strong contenders?
The above is a more compelling reason to switch to me than the other things outlined previously. But with that comes unknown unknowns, we can't shake all those out before making a decision either way, so being crystal clear first on what we are solving for and how we think a migration can improve things is crucial.
I think it would be really helpful to get more clarity on what people see as the biggest blockers with Jekyll beyond i18n. If we can clearly define what’s painful, we’ll have a stronger case for either fixing it incrementally or migrating with confidence.
6 remaining items
bjohansebas commentedon Feb 2, 2025
@expressjs/docs-wg, what do you think? Should we stick with Jekyll?
I don't want to block the maintenance of the page either, that's why I want to know, so we can either close this or keep discussing it. (I say this because, with this issue, you probably don't know whether to keep working on something or wait to make a decision)
clicktodev commentedon Feb 3, 2025
Docusaurus is the most feature complete documentation generator i've worked with and it's fast and customizable
Examples:
supports everything you've mentioned and more
I can offer my help as i have worked extensively with it
+1 Docusaurus
bjohansebas commentedon Feb 3, 2025
Probably, we need to see the support GitHub wants to give to Jekyll. I mean, GitHub hasn't updated pages-gem in a while, Jekyll 4 (which will likely make my build faster) was released over 5 years ago, and GitHub wants to use version 3.10.0. They have several open PRs updating the tools, but there isn't much movement on them wanting to maintain it
AugustinMauroy commentedon Feb 6, 2025
Without hesitation, you should use Docausorus. It's a well-maintained technology that supports MDX and react. And above all, it's widespread.
-1 astro and vitepress because they are too new and we need something stable
-1 for non-js tools (Hugo, Zola ...)
-1 for tools that are just framwork. I don't think there's any point in doing everything from scratch like on node.
clicktodev commentedon Feb 6, 2025
Pretty sure the team will land on docusaurus eventually
bjohansebas commentedon Feb 8, 2025
For now, we are going to stick with Jekyll since we will be using Crowdin for i18n (which means we no longer have to copy and paste), and we have been separating the content from the layout, making the page more maintainable. It also seems that the documentation team is fine with this since they haven’t responded to this message.
We can always reopen this issue and discuss it again if maintaining the page truly becomes difficult. I have opened several issues to improve the current configuration, which are currently being worked on.
I wouldn't want to maintain the current page design, but I can live with it and still improve it, as my main goal is to enhance the experience of using the documentation.
Thanks to everyone who shared their comments—I’m glad to see that the community supports changes like this.
clicktodev commentedon Feb 8, 2025
Docusaurus supports Crowndin btw
chrisdel101 commentedon Feb 8, 2025
Im OK staying with Jekyll since it’s not react based and it’s simple. And no copy paste solves biggest issue. Would be nice to have something that loads faster in dev in the future.
Docusurus looks very nice though. Maybe a we can run a staging env to try it out?
bjohansebas commentedon May 24, 2025
For those who aren't aware, express is planning a complete redesign. That's why I'm reopening this discussion, we need to clearly define the stack we're going to use for the redesign. There have been suggestions to use web components (as mentioned in the last meeting). It also needs to be easy to maintain
clicktodev commentedon Jun 7, 2025
Docusaurus (React and MDX) imo is the best option in terms of features, customizability, maintainability, and popularity.
I see no reason to go with anything else, if anyone has a convincing argument against docusaurus then i'm all ears