Skip to content

feat(v2): markdown pages - #2947

Closed
slorber wants to merge 5 commits into
meta:masterfrom
slorber:md-pages
Closed

slorber wants to merge 5 commits into
meta:masterfrom
slorber:md-pages

Conversation

@slorber

@slorber slorber commented Jun 16, 2020 •

Copy link
Copy Markdown
Collaborator

Motivation

#2882

We should be able to create pages by dropping a .md / .mdx file directly into the /pages folder.

Test Plan

Deploy preview and tests

2 pages created for now:

  • /hey/ => index with a link
  • /hey/test => contains a copy of the "markdown features" doc

TODO

  • define frontmatter options?
  • define additional md logic, like doc linking using paths?
  • define a md page's CSS layout (already quite nice imho)
  • add required comp to theme-bootstrap

@slorber
slorber requested review from lex111 and yangshun as code owners June 16, 2020 16:50
@slorber
slorber marked this pull request as draft June 16, 2020 16:50
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 16, 2020
@docusaurus-bot

docusaurus-bot commented Jun 16, 2020 •

Copy link
Copy Markdown
Contributor

@slorber slorber linked an issue Jun 16, 2020 that may be closed by this pull request
@slorber

slorber commented Jun 16, 2020

Copy link
Copy Markdown
Collaborator Author

Hey @yangshun @lex111 what do you think of this draft?

About the frontmatter, what options do you think we should use?

How do you see linking working? Should we just use regular pathnames or should we allow relative file paths as well (like it is done for docs)? And if so, what's the story for linking from a md page to a md doc?

@fanny I guess I should also add the MDXPage component to the bootstrap theme? How do you usually test this theme? Is there a way to deploy automatically a starter site to ensure we don't break it when modifying classic theme?

@fanny

fanny commented Jun 22, 2020

Copy link
Copy Markdown
Contributor

@fanny I guess I should also add the MDXPage component to the bootstrap theme? How do you usually test this theme? Is there a way to deploy automatically a starter site to ensure we don't break it when modifying classic theme?

Hey, I use the same manner that we use to test the classic theme, loading the corresponding plugin using a template, in my case, the bootstrap. But in few days, I'll try to setup a structure for automated tests.

@slorber slorber mentioned this pull request Jun 23, 2020
@slorber

slorber commented Jul 29, 2020

Copy link
Copy Markdown
Collaborator Author

Superseeded by #3158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown support for pages

4 participants