Skip to content

feat(v2): markdown pages - #3158

Merged
slorber merged 14 commits into
masterfrom
slorber/md-pages
Jul 31, 2020
Merged

slorber merged 14 commits into
masterfrom
slorber/md-pages

Conversation

@slorber

@slorber slorber commented Jul 29, 2020 •

Copy link
Copy Markdown
Collaborator

Motivation

#2882

(replaces former pr: #2947)

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

Frontmatter: keep it simple for now, just title/description

Test Plan

Deploy preview, tests, and dogfooding with an example page on D2 website

Doc

https://v2.docusaurus.io/docs/next/creating-pages

@slorber
slorber requested review from lex111 and yangshun as code owners July 29, 2020 17:43
@slorber
slorber marked this pull request as draft July 29, 2020 17:43
@docusaurus-bot

docusaurus-bot commented Jul 29, 2020 •

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jul 29, 2020
slorber added 7 commits July 29, 2020 19:58
# Conflicts:
#	packages/docusaurus-plugin-content-pages/package.json
#	packages/docusaurus-plugin-content-pages/src/__tests__/index.test.ts
#	packages/docusaurus-plugin-content-pages/src/index.ts
#	packages/docusaurus-utils/src/index.ts
# Conflicts:
#	packages/docusaurus-plugin-content-pages/package.json
@slorber
slorber marked this pull request as ready for review July 30, 2020 17:29
@slorber

slorber commented Jul 30, 2020

Copy link
Copy Markdown
Collaborator Author

Ready for review, will merge tomorrow

@slorber slorber added the pr: new feature This PR adds a new API or behavior. label Jul 31, 2020
@slorber
slorber merged commit 7cceee7 into master Jul 31, 2020
@yangshun
yangshun deleted the slorber/md-pages branch August 26, 2020 02:00
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
* markdown pages POC

* add remark admonition, mdx provider, yarn2npm...

* pluginContentPages md/mdx tests

* pluginContentPages md/mdx tests

* add relative file path test link to showcase link problem

* fix Markdown pages issues after merge

* fix broken links found in markdown pages

* fix tests

* factorize common validation in @docusaurus/utils-validation

* add some documentation

* add using plugins doc

* minor md pages fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: new feature This PR adds a new API or behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants