facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
55.64k stars 8.34k forks source link

Theme gallery #3522

Open slorber opened 3 years ago

slorber commented 3 years ago

Theme gallery

We'd like to have multiple Docusaurus themes.

For now:

We agreed that those themes should all rather implement the same UX and work with docs, blog, pages... This way, we can:

Related issues to read, as we already had theme-gallery related discussions with @fanny here:

The integration test suite will be handled in a separate issue https://github.com/facebook/docusaurus/issues/3523


IMPORTANT: Algolia crawlers use DOM selectors to understand the hierarchy of the pages. We'll have to also make sure the default Algolia Docusaurus config works fine for all themes, so we should find a way to make the selectors "stable" across themes, in the same way they should be stable for tests. We'll probably add explicit "lvl0-lvl6" markers in each theme so that we don't break these selectors in the future.

See our current config: https://github.com/algolia/docsearch-configs/tree/master/configs/docusaurus-2.json

vthirupathi commented 3 years ago

Hi, is this still a desired feature? I'm considering working on it

slorber commented 3 years ago

Hi @vthirupathi , this is still a desired feature, but we need to factorize some code to make this happen first, and then we'll likely delegate it to MLH interns. We are not yet looking for external contributors for this issue.

maurerbot commented 3 years ago

Any ETA on the tailwind preset?

slorber commented 3 years ago

no progress but we now have a "configurePostCss" hook and users are already using Tailwind with Docusaurus here: https://github.com/facebook/docusaurus/issues/2961