Docusaurus: Markdown support for pages

Created on 4 Jun 2020  路  7Comments  路  Source: facebook/docusaurus

馃殌 Feature

Allow markdown support for pages.

Have you read the Contributing Guidelines on issues?

yes

Motivation

I started trying out docusaurus v2 and it worked out great for technical documentation. Everyone on the team loved how clean it looks, easy to maintain.

We would like to take one more step forward to add more useful info related to our app.

Pitch

  • Being able to use markdown eliminates the overhead styling and it is easier to maintain.

  • non technical people on team can also contribute.

advanced feature mlh

All 7 comments

Hi,

So, to understand, you want to use MD/MDX for something else than docs/blog?

Currently, these releases/help pages etc are build with static JSX, but it could be possible to create pages with MD/MDX too.

In such case, those md pages would probably apply automatically the site's main layout, and center the markdown content.

Is this what you have in mind?


Note: what you want to do is probably already possible by implementing your own plugin, but this is likely more work on your side than having official markdown pages support ^^

Yes, that is exactly what I'm looking for. As per following Stackoverflow any additional tabs can have content from src/pages only.

I was confused when I read this feature request. I think the description is misleading. It really has nothing to do with navigation or tabs. It's about being able to create regular "pages" (other than docs/blogs) using Markdown.

@amimas that is correct. I think @chaitanya1248 was confused over what the navbar was doing and achieving.

@chaitanya1248 For clarity, the navbar only serves to display links to other pages. What you are asking here is to allow writing markdown to create new routes so that they can be referenced in the navbar.

I've edited the issue description to make it clearer.

Anyway if anyone is interested, I roughly got it to work in https://github.com/facebook/docusaurus/tree/yangshun/pages-mdx and had a PR #1610 which wasn't merged. I can't remember exactly why but Endilie mentioned that there were implicit dependencies on some markdown-related packages that I should have added. I might revisit this.

will take a look next week

here's a first draft PR if you want to take a look:
https://github.com/facebook/docusaurus/pull/2947

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebqq picture sebqq  路  3Comments

endiliey picture endiliey  路  3Comments

awibox picture awibox  路  3Comments

ericnakagawa picture ericnakagawa  路  3Comments

lex111 picture lex111  路  3Comments