Sébastien Lorber
41ff9a9fd0
chore(v1): move v1 docs inside website-1.x ( #3504 )
...
* move v1 docs in website-1.x
* fix editUrl after moving v1 docs
* update crowdin source for v1 docs
* fix test after v1 config change
* migration cli should support customDocsPath (fix v1->v2 integration tests)
* fix migrationConfig.test.ts
2020-10-01 17:16:24 +02:00
Sébastien Lorber
85ff9bd33a
chore(v2): v2 website should make it easy to contribute to upstream docs ( #3506 )
...
* To incitate to contribute to upstream docs, we could set the upstream docs the main docs so that editUrl will modify upstream docs in priority
* add unreleased label instead of next
2020-10-01 16:13:11 +02:00
Yangshun Tay
35b6edb3f3
misc: update CODEOWNERS ( #3511 )
...
* misc: update CODEOWNERS
* Update CODEOWNERS
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-01 12:44:38 +02:00
Sébastien Lorber
e98247e894
fix(v2): DX deploy error messages should print effective env variables names #3503
2020-09-30 18:37:23 +02:00
Sébastien Lorber
dc31dad1de
docs(v2): add doc for wrapping theme components with @theme-original and @theme-init ( #3502 )
...
* add doc for wrapping theme components
* fix tests
* Minor improvements
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-09-30 18:15:47 +02:00
Sébastien Lorber
9cbca49ecf
fix(v2): fix Docusaurus 2 website PWA manifest #3500
2020-09-30 16:56:35 +02:00
Alexey Pyltsyn
ac28dc7091
chore(v2): upgrade Infima to 0.2.0-alpha.13 ( #3499 )
2020-09-30 15:25:41 +02:00
moonrailgun
f802a76d83
test(v2): add protocol relative uri validation test ( #3453 )
...
* feat(v2): add relative uri support
* add // protocol relative uris test case
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-09-29 20:06:46 +02:00
Tom Milligan
fe78cbeff5
fix(v2): allow relative URLs in URISchema #3449
2020-09-29 18:34:39 +02:00
Alexey Pyltsyn
55cd7a7b5a
fix(v2): use valid value for crossorigin attribute ( #3456 )
2020-09-29 17:38:15 +02:00
Rémi Doreau
c8d48052b5
fix(v2): normalizeUrl edge cases ( #3427 )
...
* fix(utils): cover normalizeUrl edge cases
* fix(utils): normalizeUrl new edge cases
2020-09-29 17:09:26 +02:00
hackerman
db051eef4f
feat(v2): env variable TERSER_PARALLEL to customize TerserPlugin.parallel ( #3497 )
...
* fix(v2): disable terser parallel on CIs
Do not run Terser in parallel when using CircleCI or similar CI environments
to avoid "Error: Call retries were exceeded" errors. For more information
see https://github.com/webpack-contrib/terser-webpack-plugin#parallel
`CI=true` is true for:
- https://docs.gitlab.com/ee/ci/variables/#debug-logging
- https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables#default-environment-variables
- https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
- https://docs.travis-ci.com/user/environment-variables/
* fix(v2): check for possibly undefined env variable
* fix(v2): configurable terser parallelization
* fix(v2): correct terser codedoc
* fix(v2): explicitly test for undefined
* fix(v2): add radix to parseInt
* fix(v2): add missing semicolon
* fix(v2): resolve prettier issues
* fix(v2): resolve remaining prettier issues
2020-09-29 16:42:08 +02:00
Rémi Doreau
d3a01458a3
feat(v2): add beforeDefaultRemarkPlugins/beforeDefaultRehypePlugins options to all md content plugins ( #3467 )
...
* fix(plugin-content-docs): add beforeDefaultRemarkPlugins + beforeDefaultRehypePlugins options
* fix(plugin-content-blog): add beforeDefaultRemarkPlugins + beforeDefaultRehypePlugins options
* fix(plugin-content-pages): add beforeDefaultRemarkPlugins + beforeDefaultRehypePlugins options
* feat(website-docs): overriding remark-rehype plugins
* fix(plugin-content): update beforeDefaultRehypePlugins/beforeDefaultRemarkPlugins types
* fix(plugin-content-docs): fix tests
2020-09-29 14:48:34 +02:00
Sébastien Lorber
f343450e85
feat(v2): migrate bootstrap components to ts ( #3496 )
...
* feat(v2): Migrate bootstrap theme to typescript
* chore(v2): Add eslint rule to avoid delete import of modules
* chore(v2): Add lib to gitignore
* chore(v2): Add prettier script
* chore(v2): change hooks to ts
* fix(v2): Fix Navbar and Layout problems
* fix(v2): scroll
* fix(v2): navbar metadata
* refactor(v2): improve css styles
* chore(v2): Restore debug layout
* feat(v2): Remove console.log
Co-authored-by: fanny <fanny.vieira@ccc.ufcg.edu.br>
2020-09-29 13:16:39 +02:00
Felipe Santos
1c251bca2e
fix(v2): Fix markdownlint rules on template init/README #3465
2020-09-29 12:23:06 +02:00
Muskan Kumar
a28aedcc5c
misc: add License to the documentation ( #3473 )
...
* Update README.md
Added the MIT License shield and fixed grammatical errors in the documentation.
* Update CODE_OF_CONDUCT.md
Update CODE_OF_CONDUCT.md
* Update CODE_OF_CONDUCT.md
* Update CODE_OF_CONDUCT.md
2020-09-29 11:06:33 +08:00
Sébastien Lorber
6aeccc685e
docs(v2): grammar fix ( #3493 )
2020-09-28 19:29:51 +02:00
aakhtar3
a17693dd1b
docs(v2): Added drone.io publish docs #3491 ( #3492 )
2020-09-28 18:32:07 +02:00
Bartosz Kaszubowski
ae2c063929
feat(v2): allow to use array of files in customCss field ( #3474 )
...
* feat(v2): allow to use array of files in customCss field
* customCss array:
- fix bug (push instead of concat)
- update docs
- add theme config validation + tests
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-09-28 18:15:41 +02:00
Henry Vélez
cc31567459
feat(v2): new docusaurus clear command ( #3446 )
...
* feat: new docusaurus clear command
* Update packages/docusaurus/bin/docusaurus.js
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
* docs: new docusaurus clear command
* fix doc
* update monorepo clear cmd
* make clear async function wait for deletes to complete + factorize a bit
* prettier fix
* better clear docs
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-09-28 16:33:35 +02:00
Grégory Heitz
06cc8fb7a1
feat(v2): Add @theme-init components to user theme ( #3485 )
...
* Add @theme-init components to user theme
* Refactor loadThemeAlias duplicate code to function
2020-09-28 14:48:42 +02:00
Bartosz Kaszubowski
c0d8238c49
feat(v2): add ability to set custom title delimiter in config ( #3460 )
...
* feat(v2): add custom title delimiter to the theme classic
* fix validation tests
* remove title delimiter fallback
* move titleDelimiter to main config, update theme-bootstrap
* remove test value from config
* update test snapshot
* Improve docs
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-09-26 00:25:19 +03:00
Tim Gates
8bed33b81f
docs(v2): fix simple typo, localy -> locally ( #3480 )
...
There is a small typo in website/docs/cli.md, website/docs/deployment.md, website/versioned_docs/version-2.0.0-alpha.60/cli.md, website/versioned_docs/version-2.0.0-alpha.60/deployment.md, website/versioned_docs/version-2.0.0-alpha.61/cli.md, website/versioned_docs/version-2.0.0-alpha.61/deployment.md, website/versioned_docs/version-2.0.0-alpha.62/cli.md, website/versioned_docs/version-2.0.0-alpha.62/deployment.md, website/versioned_docs/version-2.0.0-alpha.63/cli.md, website/versioned_docs/version-2.0.0-alpha.63/deployment.md, website/versioned_docs/version-2.0.0-alpha.64/cli.md, website/versioned_docs/version-2.0.0-alpha.64/deployment.md.
Should read `locally` rather than `localy`.
2020-09-23 22:50:06 +03:00
Long Ho
407581d26a
fix(v2): add serve to internal command list ( #3451 )
...
Right now `docusaurus serve my-dir` doesn't work because it's not registered as an internal command, thus always forced to invoked w/ `path.resolve('.')`. This fixes that
2020-09-23 21:15:40 +03:00
Alexey Pyltsyn
02f96286e5
docs(v2): remove redundant new line in code block ( #3479 )
2020-09-23 19:16:04 +03:00
Alexey Pyltsyn
aeb7aa3901
chore(v2): remove alpha 58 doc ( #3477 )
2020-09-23 23:38:53 +08:00
Bartosz Kaszubowski
f9944cb2fc
feat(v2): add optional custom wrapper class name for pages based on theme classic Layout ( #3457 )
...
* feat(v2): add optional custom wrapper class name for pages based on theme classic Layout
* feat(v2): add optional custom wrapper class name for markdown pages
* fix TS types
2020-09-23 15:38:17 +03:00
Sam Zhou
0ad8958438
fix(v2): show dropdown instead of a single button when there are two versions ( #3472 )
2020-09-22 18:20:50 +03:00
Jeremy Hager
521ef59908
docs(v2): add deployment command for PowerShell ( #3459 )
...
* Added powershell command for deployment
- specified batch command is for cmd
- added powershell as an option for deployment, changed to single quotes
* - This affects the following versioned docs:
- 2.0.0-alpha.63
- 2.0.0-alpha.64
- Next (Dev)
* Changed deploy commands to tabbed
- bash, windows, powershell, and cmd are now part of <tabs>
- default value is bash
* Changed deployment commands to tabs in v63 and 64
- Next (dev) now has better syntax
- 2.0.0-alpha-63 and 2.0.0-alpha-64 now include the tabs as well
* Updated lables in deploy and cmd to Windows
- Labels now are first-letter uppercase
- eg. bash -> Bash
- cmd is now Windows to align with original docs
* Removed `<Tab>` spacing in deploy section
- Removed spacing at end of `values` statement
- Removed spacing between `<Tabs>` and `<TabItem>`
- build successful locally
2020-09-19 10:16:11 +03:00
Bartosz Kaszubowski
a0cac48cd4
chore(v2): fix theme classic navbar style docs ( #3448 )
2020-09-16 10:46:28 +03:00
Joel Marcey
ca8f3811b5
misc: default Docusaurus Website UX ( #3455 )
2020-09-16 10:15:45 +08:00
Sébastien Lorber
9bf4dfb275
chore(v2): prepare v2.0.0.alpha-64 release ( #3440 )
...
* add 2.0.0 alpha 64 files
* v2.0.0-alpha.64
2020-09-11 20:35:05 +02:00
Nahiyan Kamal
8a437961f6
fix(v2): fixing typo in error message ( #3441 )
2020-09-12 02:33:08 +08:00
Sébastien Lorber
306122e3b1
chore(v2): upgrade webpack/workbox related deps to get rid of serialize-javascript 3.x security issues ( #3439 )
2020-09-11 18:36:13 +02:00
Bartosz Kaszubowski
086bee287d
feat(v2): add style property to theme-classic navbar ( #3432 )
...
* feat(v2): add style property to theme-classic navbar
* revert config test change
* review changes
2020-09-11 18:03:06 +02:00
Sébastien Lorber
c0ce83f243
fix(v2): fix manifest to support baseUrl ( #3438 )
2020-09-11 16:26:44 +02:00
Sébastien Lorber
7ffe93903c
fix(v2): fix empty link error message ( #3435 )
...
* fix empty link error message
* fix snapshot
2020-09-11 15:21:44 +02:00
Ash
37989a00c3
fix(v2): Correctly resolve sw.js path on windows ( #3436 )
...
* fix(v2): Correctly resolve sw.js path on windows
* Just fixing the icons too
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-09-11 15:19:11 +02:00
Bartosz Kaszubowski
80c9431af7
fix(v2): fix theme-classic announcement bar closable style ( #3433 )
2020-09-11 11:59:31 +02:00
josephMG
d280176806
fix(v1): versioned_docs and skip-next-release relative path issue by adding versioned_source to metadata ( #3429 )
2020-09-10 16:52:16 +02:00
Thad Guidry
94527b0b62
docs(v2): fix grammar ( #3428 )
...
Co-authored-by: Andrulko <andriy@crowdin.com>
2020-09-10 12:33:43 +02:00
Méril
77db144378
docs(v2): reference Eta's syntax in ssrTemplate section ( #3425 )
2020-09-09 15:49:11 +02:00
Méril
d844ff6107
feat(v2): add an option to toggle trailing slash for urls in sitemap ( #3426 )
2020-09-09 15:48:47 +02:00
Rutik Wankhade
3638b1651a
docs(v2): minor typo fix ( #3423 )
...
* docs: minor typo fix
Markdown import example in website/src/pages/examples/markdownPageExample.md imports the wrong chapter.
See this comment f234c407f1 (r42067403)
### Have you read the [ Contributing Guidelines on pull requests](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md#pull-requests )?
(Yes)
* Update website/src/pages/examples/markdownPageExample.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-09-08 19:49:33 +02:00
Sébastien Lorber
17975950b2
fix(v2): reset sidebar state on sidebar changes ( #3418 )
2020-09-07 15:19:39 +02:00
Sébastien Lorber
21852948ce
feat(v2): ability to add/override theme html metadatas ( #3406 )
...
* ability to add/override theme html metadatas
see https://github.com/facebook/docusaurus/issues/3024
* refactor/fix validateThemeConfig tests
2020-09-04 16:36:56 +02:00
Sébastien Lorber
f49d8baf2f
fix(v2): fix debug plugin unscoped global css affecting all code blocks ( #3405 )
...
https://github.com/facebook/docusaurus/issues/3402
2020-09-04 14:45:38 +02:00
dependabot[bot]
e32bac88bb
chore(deps): bump decompress from 4.2.0 to 4.2.1 ( #3401 )
...
Bumps [decompress](https://github.com/kevva/decompress ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/kevva/decompress/releases )
- [Commits](https://github.com/kevva/decompress/compare/v4.2.0...v4.2.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-04 14:39:16 +02:00
Sébastien Lorber
8af3ad4250
chore(v2): prepare v2.0.0.alpha-63 release ( #3400 )
...
* add alpha 63 + remove +3month old versions
* update publish guide
* v2.0.0-alpha.63
2020-09-03 18:52:03 +02:00
Sébastien Lorber
0baf3c2e54
fix(v2): DocSearch should keep working after a new release (part 2/2) ( #3397 )
2020-09-03 17:28:24 +02:00