Skip to content

Markdown support for pages #2882

Closed
Closed

Description

@chaitanya1248

🚀 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.

Activity

  1. added
    feature
    status: needs triage
    on Jun 4, 2020
  2. slorber commented on Jun 4, 2020

    @slorber
    Collaborator

    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 ^^

  3. chaitanya1248 commented on Jun 4, 2020

    @chaitanya1248
    Author

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

  4. amimas commented on Jun 4, 2020

    @amimas

    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.

  5. changed the title [-]Additional tabs supports markdown[/-] [+]Markdown support for pages[/+] on Jun 5, 2020
  6. yangshun commented on Jun 5, 2020

    @yangshun
    Contributor

    @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.

  7. yangshun commented on Jun 5, 2020

    @yangshun
    Contributor

    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.

  8. added
    mlh
    and removed
    status: needs triage
    on Jun 5, 2020
  9. self-assigned this
    on Jun 5, 2020
  10. slorber commented on Jun 5, 2020

    @slorber
    Collaborator

    will take a look next week

  11. added
    difficulty: advanced
    on Jun 5, 2020
  12. slorber commented on Jun 16, 2020

    @slorber
    Collaborator

    here's a first draft PR if you want to take a look:
    #2947

  13. linked a pull request that will close this issuefeat(v2): markdown pages #2947on Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty: advancedfeaturemlh

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions