Commit graph

27 commits

Author SHA1 Message Date
Sam Zhou
55a50d37dc
feat(v2): support syncing tab choices (#2366)
* feat(v2): Support syncing tab choices

* Move docs changes to website/docs

* Do not import entire React in TabGroupChoiceContext

* Store only one tab choice according to discussion in PR

* Remove leftover logging code during debugging

* Put storage value in separate const outside the hook-level

* Use an array to keep track of different tab groups

* Revert back to using `groupId`

* Update markdown-features.mdx

* Update markdown-features.mdx

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-15 13:47:52 +08:00
Alexey Pyltsyn
5226767caf
feat(v2): add support specify new languages for Prism (#2250)
* feat(v2): add support specify new languages for Prism

* Do It Right

* More fix

* Fix up!

* Fixes

* Move to dev dependencies

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-08 22:13:02 +08:00
Hassan Farid
7b2716e6e1
docs(v2): fix typo in remark-admonitions example (#2343)
* Fixed typo in the example

* fix

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-02-29 11:28:28 +08:00
Amila Welihinda
843d5d8c48
docs(v2): fix broken 'more syntax' url 2020-02-26 20:15:02 +03:00
Elvis Wolcott
0fa080c39c
feat(v2): add remark-admonitions to @docusaurus/preset-classic (#2224)
* feat(v2): add remark-admonitions

* feat(v2): add admonitions to style guide

* style: cleanup changes

* docs(v2): document how to use admonitions

* docs(v2): use proper package name

* docs(v2): add link to remark-admonitions docs

* style(v2): clean up addAdmonitions
2020-02-08 19:28:47 +08:00
Wei Gao
e224361cd2
docs(v2): require using JSX flavored style objects in mdx (#2257)
* docs(v2): require using JSX flavored style objects instead of style attributes in Docusaurus 2

* resolve discussions
2020-02-01 20:27:06 +08:00
Yangshun Tay
08ca95af01
docs(v2): dark mode syntax highlighting (#2153) 2019-12-29 16:40:17 +08:00
Endi
32c9d07b90
perf(v2): improve dev build time by not overwriting file if possible (#2089)
* perf(v2): improve sequential build time by not overwriting file if possible

* minor improvement

* docs
2019-12-06 12:17:41 +07:00
Endi
c533adc4aa docs(v2): display yarn and npm command on website (#2037)
* docs(v2): display yarn and npm command on website

* more

* fix div cannot be descendant p
2019-11-23 18:32:26 -08:00
Endi
9829f56b1e
feat(v2): docs versioning ❄️🔥 (#1983)
* wip: versioning

* wip again

* nits lint

* refactor metadata code so that we can have inobject properties optimization, fix typing

* remove buggy permalink code

* modify versioned docs fixture such that foo/baz only exists in v1.0.0

* refactor metadata.ts so that there is less transformon object

* more refactoring

* reduce test fixtures, refactoring

* refactoring readability

* finish metadata part

* refactor with readdir

* first pass of implementation

* fix mdx laoder

* split generated routes by version for performance & smaller bundle

* test data for demo

* refactor with set

* more tests

* typo

* fix typo

* better temporary ui

* stronger typing & docsVersion command

* add 100% test coverage for docsVersion command

* more test and delete manual docs cut

* cut 2.0.0-alpha.35 docs

* cut alpha.36 instead

* copyright

* delete versioned docs

* stronger test on metadata

* update typo
2019-11-22 16:17:40 +07:00
Yangshun Tay
edf4c16c93 feat(v2): allow hiding docs table of contents (#2012)
* feat(v2): allow hiding docs table of contents

* move to frontmatter
2019-11-19 15:08:45 +07:00
Alexey Pyltsyn
472a1a660c docs(v2): fix syntax highlighting for YML code blocks (#1988) 2019-11-13 15:43:01 -08:00
Eric Carboni
b027db1b34 docs(v1): remove exclusive language (#1961)
* Initial commit to replace easy, easily, simple, just, of course

* Revert ordered list change
2019-11-11 14:06:54 -08:00
Alexey Pyltsyn
c507028cb0
feat(v2): add ability default lang for code blocks (#1910)
* feat(v2): add ability default lang for code blocks

* Add support for CodeBlock

* changelog

* more changelog

* Add checks

* docs

* docs

* Fix changelog

* revert config

* Update theme-classic.md

* Update packages/docusaurus-theme-classic/src/theme/CodeBlock/index.js

Co-Authored-By: Endi <endiliey@gmail.com>
2019-11-05 10:36:22 +03:00
Yangshun Tay
f635f9aba2
docs(v2): code block line highlighting (#1904)
* docs(v2): code block line highlighting

* misc: update CHANGELOG

* misc: respond to review

* docs: add line highlighting to the template
2019-10-29 14:59:24 +08:00
Yangshun Tay
a690d34af0
feat(v1): allow specifying meta desc in front matter (#1859)
* feat(v1): allow specifying meta desc in front matter

* misc(v2): sync with v1
2019-10-20 11:17:10 -07:00
bravo-kernel
5bd6284f18 docs(v2): clarify that front matter 'description' is used as a meta tag (#1862) 2019-10-20 10:49:28 -07:00
bravo-kernel
9fb9674862 docs(v2): describe adding a syntax highlighting language (#1858) 2019-10-20 16:54:59 +07:00
Endi
c630e1aab9
fix(v2): keywords frontmatter should work properly (#1840)
* fix(v2): keywords frontmatter should work properly

* nits

* nits again
2019-10-15 10:57:08 +07:00
Endi
94b0451fa4
feat(v2): add 'custom_edit_url' and 'hide_title' markdown header feature (#1838)
* feat(v2): add 'custom_edit_url' and 'hide_title' markdown header feature

* nits
2019-10-14 17:25:05 +07:00
Yangshun Tay
d848c3bd7b
feat(v2): add tabs component for multi-language code (#1836)
* feat(v2): add tabs component for multi-language code

* Update website/docs/migrating-from-v1-to-v2.md

Co-Authored-By: Endi <endiliey@gmail.com>
2019-10-13 10:16:04 -07:00
Yangshun Tay
1c5a6ee244
misc(v2): make playground nicer (#1819)
* misc(v2): make code block nicer

* misc(v2): update changelog for code + playground

* misc(v2): update playground docs
2019-10-10 15:12:17 -07:00
Endi
95f0552bad feat(v2): allow infinitely nested sidebar (#1812)
* feat(v2): allow infinitely nested sidebar

* Update markdown-features.mdx

* Update sidebar.md

* Update sidebar.md
2019-10-07 11:52:43 -07:00
Endi
2d6aaea069 feat(v2): allow custom syntax highlighting theme (#1674) 2019-07-18 11:19:00 -07:00
endiliey
568d9fd7dd chore(v2): update changelog 2019-07-14 17:32:48 +07:00
Yangshun Tay
c021367a18
docs(v2): proofread docs for alpha.20 (#1658)
* docs(v2): proofread docs for alpha.20

* docs(v2): update creating pages doc

* docs(v2): further updates to creating pages doc

* chore(v2): update CHANGELOG
2019-07-13 19:21:39 -07:00
Wei Gao
95fde5f827 docs(v2): refactor docs for better outline and welcoming PRs (#1641)
* docs(v2): refactor docs for better outline and welcoming PRs

* docs(v2): update docs
2019-07-07 23:14:49 -07:00
Renamed from website/docs/writing-docs.mdx (Browse further)