Sébastien Lorber
b8de9c6ded
feat(v2): introduce docs slug in front matter ( #2771 )
...
* feat: docs pathname frontmatter (for #2697 )
* feat: docs pathname frontmatter (for #2697 )
* chore: comment typo
* feat: add slug frontmatter for docs
* test: add tests for versioned sites slugs
* docs: document slug feature
* test: fix tests and snapshots about doc slug feature
* docs(v2): doc slug wording
* Update website/docs/docs.md
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-06-02 20:50:30 +03:00
Joe Previte
07b9e9cd62
feat(v2): expanded sidebar categories by default ( #2682 )
...
* feat: update sidebar categ to take collapsed prop
* feat: add extra sidebars collapsed test
* fix: only mutate item.collapsed if necessary
* feat: update docs for SidebarItemCategory
* fix: update snapshots
* fix: update json to match new sidebar schema
* fix: update last snapshot
* refactor: check if item should be expanded
* docs: update sidebar categories section
* refactor: use new collpased on docusaurus
* feat: only highlight category for active page
* fix: check for window
* refactor: use ExecutionEnviornment
* refactor: make isCategoryOfActivePage pure
* fix: rename docs to docs-introduction in sidebars
* Update docs.md
* misc: remove setting for every sidebar
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-28 13:17:19 +08:00
Sam Zhou
705f8f3c51
fix(v2): Consistently use require.resolve in official plugins to resolve modules ( #2797 )
...
* fix(v2): Use require.resolve to resolve loaders in official plugins
* Use require.resolve to resolve client modules
2020-05-23 11:26:50 +08:00
Alexey Pyltsyn
783e7e7663
fix(v2): do not show sidebar on reserved docs home page ( #2785 )
2020-05-22 11:28:53 +08:00
Alexey Pyltsyn
e8f50af8f0
fix(v2): check for docs homepage correctly ( #2777 )
2020-05-20 16:18:56 +08:00
Alexey Pyltsyn
da0f865831
fix(v2): remove Markdown syntax from excerpt ( #2701 )
...
* fix(v2): remove Markdown syntax from excerpt
* Update snapshots
* Use Remark
* Switch to own solution
2020-05-18 19:57:03 +08:00
Alexey Pyltsyn
00a8e9e365
feat(v2): allow home page for docs ( #2652 )
...
* feat(v2): allow home page for docs
* Refactor
* Remove debugging info 🤦♂️
* Add sort routes for first test case
* Sort child routes for consistency
2020-05-17 17:48:02 +08:00
Alexey Pyltsyn
3ad4550854
feat(v2): add search page ( #2756 )
2020-05-17 15:55:40 +08:00
Alexey Pyltsyn
9e1f816fcd
fix(v2): use remark-admonitions separately in each plugin instead of in preset only ( #2642 )
...
* fix(v2): use remark-admonitions separately in each plugin instead of in preset only
* Update types.d.ts
* Update types.d.ts
* Address fixes from review
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-24 12:18:54 +08:00
Alexey Pyltsyn
510bec6532
Revert "feat(v2): add option to toggle sidebar category open by default ( #2613 )" ( #2644 )
...
This reverts commit 1863a3c805
.
2020-04-22 18:50:18 +03:00
Joe Previte
1863a3c805
feat(v2): add option to toggle sidebar category open by default ( #2613 )
...
* feat: update sidebar categ to take collapsed prop
* feat: add extra sidebars collapsed test
* fix: only mutate item.collapsed if necessary
* feat: update docs for SidebarItemCategory
* fix: update snapshots
* fix: update json to match new sidebar schema
* fix: update last snapshot
2020-04-22 20:31:10 +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
Fanny
5e664a1f26
feat(v2): add edit url in post page ( #2524 )
...
* Add edit page url in docs
* feat(v2): Create EditPage component
* feat(v2): Improve component
* Add test
* çhore(v2): update description
* çhore(v2): update url
* fix(v2): test
* fix(v2): test
* feat(v2): change the prop of EditPage component
* chore(v2): Remove packages
* feat(v2): Update old tests
* chore(v2): fix package
* fix(v2): fix editUrl
* docs(v2): document editUrl
* --
* --
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 17:34:48 +08:00
Bartosz Kaszubowski
b4acb89888
chore(v2): use single method Lodash packages in docs plugin ( #2519 )
...
* chore(v2): use single method Lodash packages in docs plugin
* reorder packages
* TS types nightmare
2020-04-04 01:24:30 +08:00
Alexey Pyltsyn
686c8ae27d
fix(v2): use lodash instead of array-map-polyfill ( #2490 )
2020-04-02 01:08:22 +08:00
Sébastien Lorber
201c663318
feat(v2): allow nested sidebar category shorthand syntax ( #2444 )
...
* feat(v2): allow sidebar category shorthand syntax also for nested elements
* Update sidebars-category-shorthand.js
* Update sidebars-category-shorthand.js
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-03-26 00:59:51 +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
Yangshun Tay
75f5bb4d23
feat(v2): allow per-doc hiding of edit url ( #2166 )
2020-01-01 18:45:55 +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
Yangshun Tay
55e676cb25
misc: add command to run prettier on docs ( #2102 )
...
* misc: add command to run prettier on docs
* Fix GH issue template
* Fix tests
* Add prettier-docs command to precommit
2019-12-07 21:56:30 -08:00
Endi
c45a2c649f
fix(v2): metadata error if markdown does not have line break ( #2095 )
2019-12-06 00:14:44 -08:00
Endi
7f8aca2ddc
perf(v2): smaller bundlesize by embedding metadata to content ( #2088 )
...
* wip embed metadata to content
* embed metadata in blog as well
* refactor
* update test
* yarn lock
* avoid overwriting file everytime we run new nodejs process
* nits
2019-12-06 12:34:21 +07:00
endiliey
bd5bdb91f7
chore: add missing facebook copyright header
2019-11-27 16:50:20 +07:00
Endi
be396168d1
perf(v2): unblock metadata processing when possible ( #2054 )
2019-11-25 10:32:38 -08:00
Endi
9862a6821a
feat(v2): allow non sidebar category to be first item of sidebar ( #2032 )
...
* feat(v2): allow non sidebar category to be first item of sidebar
* better error messages
* edit the react component
* Update website/docs/sidebar.md
* nits
* add @babel/plugin-transform-runtime
2019-11-23 20:08:19 -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
Endi
4e5a03fb88
fix(v2): throw error if first level item of a sidebar is not category ( #1994 )
2019-11-14 23:36:15 +07:00
Endi
cf4037ef91
chore(v2): update dependencies ( #1985 )
...
* chore(v2): update dependencies
* use forked ideal image deps. omgg
2019-11-13 23:04:13 +07:00
Endi
6a3efd5f3d
breaking(v2): editUrl should point to website instead of docsDir to support editUrl in versioning/trans ( #1958 )
2019-11-11 21:24:04 +07:00
Endi
1235fc9f7e
refactor(v2): avoid synchronous/ blocking operation when possible ( #1957 )
...
* perf(v2): avoid synchronous/ blocking operation when possible
* save variable
2019-11-11 20:56:23 +07:00
Endi
3be2e86546
chore: bump dev dependencies ( #1955 )
...
* chore: bump devdeps
* upd infima url
2019-11-11 17:44:26 +07:00
Endi
639d8d3eac
perf(v2): skip runtime fileHash cache in prod & get timestamp asynchronously ( #1951 )
...
* skip hash calculation in prod when generating file
* perf: convert lastUpdated to be async process
* changelog
2019-11-08 23:35:39 +07:00
Endi
e04c8f140f
perf/fix(v2): more efficient hot reload & consistent filegen ( #1950 )
...
* perf(v2): efficient hot reload, consistent generated file
* changelog
* more
2019-11-08 17:14:14 +08:00
Endi
fc4928f7a6
fix(v2): more consistent route config generation ( #1946 )
...
* fix(v2): more consistent route config generation
* nits
* snapshot
* address review & test upd
* reduce 2xloop -> 1x loop in docs plugin
* nits
2019-11-08 11:55:48 +07:00
Endi
feb804cb83
test(v2): add tests for docs markdown link replacement ( #1944 )
...
* refactor(v2): simplify & add tests for docs markdown link replacement
* nits
2019-11-06 23:54:37 +08:00
Endi
baa884fe2e
fix(v2): fix chokidar/watcher does not trigger reload on windows ( #1943 )
...
* fix(v2): fix chokidar/watcher does not trigger reload on windows
* nits
* nits
* stronger test
2019-11-06 23:52:40 +08:00
Endi
a8826b98b3
fix(v2): docs plugin stability improvement (100% test coverage) ( #1912 )
...
* update jest config
* add more tests on docs plugin
* fix(v2): docs plugin should not add routes if there are no docs
* fix
* rm -rf coverage
* nits
* update
2019-10-29 23:59:27 +08:00
Endi
2c1012b9ec
fix(v2): do not show plugin data path ( #1861 )
...
* fix(v2): do not show plugin data path
* test fix
* nits
2019-10-20 10:58:22 -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
Endi
48db8b8e09
refactor(v2): simplify & faster last updated logic for docs ( #1832 )
...
* refactor(v2): simplify last updated logic for faster dev
* Update packages/docusaurus-plugin-content-docs/src/__tests__/lastUpdate.test.ts
* Update packages/docusaurus-plugin-content-docs/src/__tests__/lastUpdate.test.ts
2019-10-12 10:30:22 +08:00
Yangshun Tay
9692d4e6d7
fix(v2): only show the Git requirement message for the last update of docs plugin once ( #1830 )
2019-10-10 22:14:09 -07:00
Yangshun Tay
4fe6ae3c24
feat(v2): docs last update timestamp and author ( #1829 )
...
* feat(v2): docs last update timestamp and author
* misc(v2): changelog
* misc(v2): better error messages
2019-10-10 21:45:39 -07:00
Yangshun Tay
54e9e025d8
misc(v2): remove legacy from docs
2019-10-10 19:45:50 -07:00
Yangshun Tay
e5e085b33d
chore(v2): make v2 docs plugin legacy ( #1639 )
...
* chore(v2): make v2 docs plugin legacy
* chore(v2): update fixtures
2019-07-05 17:20:46 -07:00
Endi
f0d5313d48
refactor(v2): move themes components from docs blog ( #1571 )
...
* refactor(v2): move themes from docs blog
* move mdxprovider to docs and blog only
2019-06-06 16:53:47 +07:00
Yangshun Tay
5962cda8b7
feat(v2): responsive sidebar ( #1562 )
...
* feat(v2): responsive sidebar
* feat(v2): separate css modules from Infima
* fix(v2): sidebar a11y
2019-06-05 10:58:04 -07:00