slorber
6b507630e3
migrate useful helper functions to docusaurus-utils
2020-06-10 17:22:41 +02:00
slorber
c964a1e3b6
add introduction redirect
2020-06-10 17:22:08 +02:00
Yangshun Tay
3e43955df6
docs(v2): fix typo in ExecutionEnvironment example
2020-06-09 21:52:24 +08:00
Anshul Goyal
c97fd9f1d7
docs(v2): fix GitHub action workflow in documentation ( #2910 )
2020-06-09 16:29:55 +08:00
Sébastien Lorber
08359dd3ca
chore(v2): fix async tests ( #2906 )
2020-06-09 01:10:13 +08:00
Teik Jun
66716d1619
feat(v2): add nojekyll file to static folder for all templates ( #2902 )
2020-06-08 09:45:57 +08:00
Alexey Pyltsyn
dd1ef71aac
chore(v2): replace Clipboard with copy-text-to-clipboard ( #2900 )
...
* chore(v2): replace Clipboard with copy-text-to-clipboard
* Remove clipboard from yarn.lock
2020-06-07 13:48:28 +08:00
Alexey Pyltsyn
afe9ff91a4
chore(v2): replace classnames with clsx ( #2895 )
2020-06-07 13:40:06 +08:00
dependabot[bot]
600ef7ae28
chore(deps): bump websocket-extensions from 0.1.3 to 0.1.4 ( #2899 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-06 14:58:25 +03:00
Alexey Pyltsyn
277f02b924
fix(v2): set correct canonical url for docs home page ( #2896 )
2020-06-06 16:51:00 +08:00
Alexey Pyltsyn
36cf2eca87
refactor(v2): synchronize yarn/npm command on site ( #2897 )
2020-06-06 16:49:49 +08:00
Sébastien Lorber
1003a15d1f
polish(v2): improve Docusaurus 1 to 2 migration developer experience ( #2884 )
...
* improve markdown parsing errors by adding file path to error
* typo commit
* Add default nav item position to right (as v1)
* improve error when sidebar references unexisting document
* parseMarkdownFile: improve errors by providing hint about using "" to avoid parsing errors, if using special characters
* improve subcategory migration error for Unknown sidebar item type
* improve unrecognizedFields error
* typo
* fix inline snapshots
* improve the migration docs
* improve the migration docs
* improve migration doc
* Update migrating-from-v1-to-v2.md
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-06-06 11:16:50 +08:00
Sam Zhou
8aa520c314
fix(v2): Do not automatically change tab when a non-existing option is selected ( #2893 )
2020-06-06 11:11:42 +08:00
Paul Glezen
4278cebf67
docs(v2): fix typo in command on installation page ( #2886 )
...
* Fix installation.md typo
Checking the docusaurus version should be done with
```
npx docusaurus --version
```
not
```
npm docusaurus --version
```
otherwise it prints the version of `npm` instead of `docusaurus`.
* docs: Fixed installation.md for checking version.
Specifying `npm` for the version will yield the version of NPM
instead of docusaurus itself. Use `npx` for the docusaurus version.
2020-06-06 04:14:53 +03:00
Alexey Pyltsyn
664ceb7771
fix(v2): restore styles for menu scrollbar ( #2888 )
2020-06-05 20:13:40 +08:00
Fanny
8a34872750
fix(v2): bootstrap doc sidebar ( #2860 )
...
* fix(v2): doc sidebar
* chore(v2): prettier
* fix(v2): docs navbar path
* fix(v2): fix error about activepath
* chore(v2): prettier
* feat(v2): change active color
* feat(v2): update to new docs cpmfog
* feat(v2): Add homepagepath
2020-06-05 15:36:36 +08:00
Alexey Pyltsyn
174cd8dc6f
refactor(v2): combine nested theme providers into one ( #2870 )
2020-06-05 15:09:13 +08:00
Yangshun Tay
2d8abe150f
docs(v2): make .nojekyll warning more obvious ( #2887 )
2020-06-05 10:22:06 +08:00
slorber
0ac5a66a1f
rename fromRoutePath/toRoutePath to simply from/to
2020-06-04 14:31:26 +02:00
slorber
06673ee8c3
refactor: remove redirectCreator abstraction
2020-06-04 14:28:31 +02:00
Alexey Pyltsyn
6f2e59a176
fix(v2): render as regular text uncollapsible categories ( #2880 )
2020-06-04 20:27:16 +08:00
Sébastien Lorber
953abd8154
feat(v2): allow adding components to react-live scope ( #2826 )
...
* feat(v2): add components to react-live scope (#2807 )
* fix admonition issue + improve react-live scope doc
* fix again admonition :(
* remove forwarding of mdx components to react-live scope (for now)
* remove useless dep
2020-06-04 15:18:42 +03:00
slorber
a02f90c064
Merge branch 'master' into feature/client-side-redirects
2020-06-04 11:42:00 +02:00
Alexey Pyltsyn
5c6670b94e
fix(v2): fix broken URL to introduction
2020-06-04 03:38:01 +03:00
Fanny
4b78fd4f96
fix(v2): Getting Started URL ( #2874 )
2020-06-04 03:34:22 +03:00
slorber
f6d1b2b9ca
add type comments to createRedirects doc
2020-06-03 20:09:56 +02:00
slorber
e60c063120
snapshot update
2020-06-03 19:47:36 +02:00
slorber
89038dea0c
Fix non-strict validation error, allowing [] for string
2020-06-03 19:46:57 +02:00
slorber
00a79f69c7
Add chalk non-blocking errors + fix config bug
2020-06-03 19:28:57 +02:00
slorber
77c7ac0ddb
add more redirect tests to d2 site config
2020-06-03 18:15:12 +02:00
slorber
812daa8af5
improve doc
2020-06-03 18:13:10 +02:00
slorber
e057bbd662
add proper redirect config for tests
2020-06-03 17:55:46 +02:00
slorber
c224efb8a1
Add better options validation error
2020-06-03 17:53:54 +02:00
slorber
1439bad84c
Add redirects plugin option
2020-06-03 17:30:21 +02:00
slorber
a0991c581b
add context to error message
2020-06-03 16:07:27 +02:00
slorber
5bf85e44ac
add validateRedirect
2020-06-03 16:03:03 +02:00
slorber
da8ccd0419
add isValidPathname
2020-06-03 15:40:10 +02:00
slorber
4e8b361d00
remove github pages mention for server-side redirects
2020-06-03 15:17:02 +02:00
slorber
802235c768
Merge branch 'master' into feature/client-side-redirects
2020-06-03 15:16:24 +02:00
Sébastien Lorber
c251eaf7b8
Update website/docs/using-plugins.md
...
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-06-03 12:55:09 +02:00
Sébastien Lorber
504b1b4443
Update website/docs/migrating-from-v1-to-v2.md
...
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-06-03 12:54:41 +02:00
Alexey Pyltsyn
6f332f4345
fix(v2): treat inline code in raw HTML as native element ( #2857 )
...
* fix(v2): treat inline code in raw HTML as native element
* Replace indexOf with includes
2020-06-03 11:34:25 +03:00
Alexey Pyltsyn
e68b81bc33
fix(v2): do not create route for document that serve as docs home page ( #2861 )
2020-06-03 15:56:57 +08:00
Sébastien Lorber
6797af660f
fix(v2): fix FOUC in doc sidebar and various improvements ( #2867 )
...
* bug(v2): fix active sidebar item detection logic (https://github.com/facebook/docusaurus/pull/2682#issuecomment-636631225 )
* fix sidebar category collapsed normalization to make sure we always have a boolean after normalization
* fix sidebarCollapsible option
2020-06-03 02:04:59 +08:00
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
Alexey Pyltsyn
a32422caa2
refactor(v2): add aria role for doc sidebar ( #2864 )
2020-06-02 11:06:06 +03:00
Alexey Pyltsyn
ed9977accc
docs(v2): description field in frontmatter of blog post ( #2865 )
2020-06-02 11:02:45 +03:00
tetunori
e63c468b0f
fix(v2): use base url to navigate to search page ( #2838 )
...
* fix: consider baseUrl
Add baseUrl to search page query URL.
* fix: use `useBaseUrl()`
* Revert "fix: use `useBaseUrl()`"
This reverts commit 72b319a293
.
* fix: add link to PR
2020-06-02 10:51:54 +03:00
Alexey Pyltsyn
c0c7457e01
feat(v2): allow specifying meta image for blog posts ( #2856 )
...
* feat(v2): allow specifying meta image for blog posts
* Update docs [skip ci]
2020-06-02 10:48:22 +03:00
Yangshun Tay
2cd326fe20
fix(v1): black lives matter banner
2020-06-02 12:09:28 +08:00