Anshul Goyal
f234c407f1
feat(v2): add support to ignore files in pages plugin ( #3196 )
...
* add support to ignore pages
* fix import problem
* Update website/docs/guides/creating-pages.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* Revert "fix import problem"
This reverts commit 4457a2e938
.
* revert
* fix slash
* forbid frontmatter
* fix formatting
* Update website/docs/guides/creating-pages.md
* Update website/src/pages/examples/_chapter1.md
* Update website/src/pages/examples/_chapter2.mdx
* Update website/src/pages/examples/markdownPageExample.md
* Update website/src/pages/examples/markdownPageExample.md
* Update website/src/pages/examples/markdownPageExample.md
* Update website/src/pages/examples/markdownPageExample.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-08-05 21:35:55 +02:00
Anshul Goyal
325559933f
feat(v2): add support to import assets using relative link in markdown syntax ( #3096 )
...
* add a rehyper plugin
* fix yarn.lok
* add target
* convert to remark
* add docs
* remove unused package
* remove file-loader
* add test for file-loader
* fix test
2020-08-03 15:19:12 +02:00
Sébastien Lorber
6730590c1e
refactor(v2): async md image transformer + pathname protocol as an escape hatch ( #3087 )
...
* async md image transformer + pathname protocol as an escape hatch
* make error messages computer agnostic by using relative paths
* fix error message relative path
2020-07-21 17:45:06 +02:00
Anshul Goyal
3155dc30dc
feat(v2): support for adding relative images and handling broken image links ( #3069 )
...
* all relative path in image url
* throw error if file doesn't present
* better error
* add @docusaurus/core to deps
* fix test
2020-07-21 15:27:45 +02:00
Kasper Bøgebjerg Pedersen
0e61da8f69
feat(v2): allow specifying of remark and rehype plugins before default plugins ( #2689 )
...
* feat(v2): swap order of markdown plugins
* feat(v2): remark/rehype plugins can override default plugins
2020-05-23 06:07:01 +08:00
Alexey Pyltsyn
1f00d15c74
chore(v2): fix code style (revert previous changes)
2020-04-05 17:38:12 +03:00
Alexey Pyltsyn
6965a668cd
chore(v2): fix code style
2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies ( #2538 )
...
* chore(v2): upgrade devDependencies
* chore(v2): upgrade devDependencies
* chore: prettier
2020-04-05 19:07:44 +08:00
Alexey Pyltsyn
9cf3c66917
fix(v2): remove HTML from heading slug ( #2426 )
...
* fix(v2): remove HTML from heading slug
* Fix tests for rightToc
2020-03-21 15:22:55 +08:00
Yangshun Tay
32c1a92b17
chore: yearless copyright headers for source code ( #2320 )
...
* chore: yearless copyright headers for source code
* update snapshots
2020-02-25 23:12:28 +08:00
Yangshun Tay
996b115199
misc(v2): clean up comments in code ( #2294 )
2020-02-18 21:29:23 +08:00
Endi
ace93c5a14
fix(v2): move metadata export after compiling MDX to avoid weird MDX parsing error. ( #2105 )
...
* fix(v2): move metadata export to mdx-loader to prevent any weird mdx parsing
* refactor
* nits
* nits
* nits
2019-12-11 16:33:47 +07:00
Endi
84b2270039
feat(v2): allow custom heading component ( #1687 )
...
* feat(v2): allow custom heading component
* changelog
2019-07-23 12:13:47 +07:00
Endi
305a4f0a29
feat(v2): composition syntax highlighting & live code editors ( #1555 )
...
* feat(v2): composition syntax highlighting & react-live playground
* mobile friendly tweak
* refactor styling
* revert docs
2019-06-04 15:59:51 +07:00
Endi
8743ee5041
feat(v2): allow passing remark, rehype, prismtheme to mdx-loader ( #1543 )
...
* feat(v2): allow passing remark, rehype, prismtheme to mdx-loader
* nits
2019-06-03 14:54:27 +07:00
endiliey
a0089aa9f5
chore(v2): use remark-slug so that rightToc can benefit from it
2019-05-14 16:04:52 +08:00
Yangshun Tay
23b50f17a1
refactor(v2): blog data revamp ( #1450 )
...
* refactor(v2): blog data revamp
* fix(v2): fix incorrect blog total count
* misc: remove console.log
* feat(v2): export frontMatter as an object within MDX file (#1451 )
* refactor. Don't confuse metadata & frontmatter
* export frontMatter in content itself
* nits
* nits name
* dont truncate first four lines in blog
2019-05-13 00:16:15 -07:00
Yangshun Tay
361986515c
feat(v2): presets ( #1401 )
...
* feat(v2): presets
* misc: add newline
* misc: add tests
* misc: fix path
2019-04-27 10:47:56 -07:00
Radosław Miernik
93894e7bdc
feat(v2): headings anchors ( #1385 )
...
* feat(v2): headings anchors
* misc: make hash link appear on hover
* misc: convert to rem
2019-04-23 21:41:51 -07:00
endiliey
2d24e478a5
fix(v2): fix prism not working
2019-04-24 00:23:01 +08:00
Endilie Yacop Sucipto
745f32b010
feat(v2): support rightToc, emoji, slug for docs ( #1382 )
...
* add remark-slug and remark-emoji
* implement right TOC remark plugin
* use rehype-slug ecosystem instead of remark for perf
* first rough implementation for right toc
* nits
* remove unwanted changes
* fix left border styling
* remove depths
* inline snapshot
2019-04-23 15:22:11 +07:00
endiliey
261ab9254d
fix(v2): only import prism css on browser
2019-04-14 01:02:34 +08:00
Endilie Yacop Sucipto
aa27f82acc
refactor(v2): shift to docusaurus/mdx-loader ( #1339 )
2019-04-06 23:55:22 +07:00