Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from facebook:master #113

Merged
merged 187 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
28a83d7
feat(v2): add automated canary releases (#3827)
slorber Dec 1, 2020
3e101f8
chore(ci): CI scripts cleanup, add Node 14 runs, bump checkout action…
Simek Dec 1, 2020
fe77b43
fix(v2): fix crowdin ci commands (#3857)
slorber Dec 1, 2020
aff1703
docs(v2): Fixed Typo: Hided => Hidden (#3851)
woodrufs Dec 1, 2020
9d34214
chore(v2): disable Crowdin for deploy previews (#3858)
slorber Dec 1, 2020
915f949
fix(v2): fix DocSearch keyboard navigator (#3853)
francoischalifour Dec 1, 2020
397fde0
fix(v2): refactor icons in theme-classic, fix swizzle issue (#3854)
Simek Dec 1, 2020
7d0b451
chore: add Yarn v2 cache directory to ignores (#3860)
Simek Dec 1, 2020
3f07114
chore(ci): reduce number of jobs, remove build from lighthouse pipeli…
Simek Dec 2, 2020
e90749c
fix(v2): to fix the canary release GH workflow (#3852)
slorber Dec 2, 2020
99e3ee7
chore(ci): run V1 Build and Migration CLI tests conditionally on CI (…
Simek Dec 2, 2020
d61754b
docs(v2): Add docusaurus-plugin-moesif to community plugins (#3867)
dgilling Dec 3, 2020
f37987f
chore(v2): fix ignore paths and Prettier commands in themes (#3865)
Simek Dec 3, 2020
9ad02ca
chore(v1): add missing generated files from v1 to ignores (#3872)
Simek Dec 3, 2020
20114f5
docs(v2): From docusaurus-migrate to @docusaurus/migrate (#3873)
manzinello Dec 3, 2020
70dece0
docs(v2): missing <ColorGenerator/> mdx import (#3871)
slorber Dec 3, 2020
415a797
fix(v2): load plugin commands async to fix broken plugin CLI commands…
aeneasr Dec 3, 2020
c4aeb19
fix(v2): dynamic dark mode detection without toggle widget (#3877)
hmil Dec 4, 2020
ec297ce
polish(v2): improve docusaurus deploy logs (#3880)
slorber Dec 4, 2020
08f6734
chore(v2): remove docs for alpha v62-63 (#3883)
lex111 Dec 4, 2020
9fd8a3c
chore(ci): increase Lighthouse CI max_timeout (#3884)
Simek Dec 7, 2020
e00e54a
fix(v2): improve Footer structure, add class names, use Infima transi…
Simek Dec 7, 2020
1f3f569
docs(v2): wrap section about custom domains in :::info (#3891)
Alex1304 Dec 7, 2020
3e12e95
fix(v2): use proper element for pagination nav label (#3895)
lex111 Dec 8, 2020
b14b9c8
fix(v2): do not treat at-rules during CSS minification (#3896)
lex111 Dec 8, 2020
656c04e
fix(v2): correct typo in metas generated for Twitter cards (#3900)
mpsq Dec 10, 2020
dd8f325
docs(v2): typo (#3856)
borool Dec 10, 2020
0b05806
feat(v2): enable feeds by default in blog plugin (#3842)
cindygu4 Dec 10, 2020
b11c24b
feat(v2): add custom props for consumption by swizzled sidebar (#3888)
oriooctopus Dec 10, 2020
41ef333
feat(v2): inline table-of-contents + refactor TOC (#3904)
slorber Dec 11, 2020
37c95e6
chore(deps): bump ini from 1.3.5 to 1.3.7 (#3902)
dependabot[bot] Dec 11, 2020
358ef86
chore(ci): only publish @canary release if packages/** has changed
slorber Dec 11, 2020
b490064
chore(ci): temporarily disable bootstrap deploy preview
slorber Dec 11, 2020
109a4a7
docs(v2): Move sidebar content to its own page (#3899)
ArtFlag Dec 11, 2020
4dea2c0
chore(ci): fix canary release filtering (#3907)
slorber Dec 11, 2020
4d7ebcf
chore(v2): remove docs for alpha v64 (#3912)
lex111 Dec 13, 2020
3570aa0
fix(v2): don't remove viewBox from svg
BogdanDor Dec 14, 2020
aff6561
feat(v2): Add localeDropdown navbar item type + i18n localeConfigs fi…
slorber Dec 14, 2020
1db0277
fix(v2): i18n translation extractor should handle JSX formatting edge…
slorber Dec 14, 2020
b79568f
fix(v2): remove useless console log (#3921)
slorber Dec 14, 2020
6703f84
fix(v2): fix navbar items issue on Windows? (#3922)
slorber Dec 14, 2020
57c336c
docs(v2): add FoalTS to showcase page (#3928)
LoicPoullain Dec 16, 2020
9626e54
docs(v2): Removed unnecessary closing parenthesis (#3924)
Varshit07 Dec 16, 2020
5757cdc
docs(v2): blog.md with docs: false, for blog-only mode (#3931)
Romstar Dec 17, 2020
df47c17
feat(v2): Add <Root> theme element (#3932)
slorber Dec 17, 2020
3fc29f4
chore(v2): prepare v2.0.0.alpha-70 release (#3933)
slorber Dec 17, 2020
ef49c2b
fix(v2): i18n should not crash theme without footer (#3940)
slorber Dec 18, 2020
b133e2d
fix(v2): fix i18n build logging. (#3941)
slorber Dec 18, 2020
2fb766b
fix(v2): ignore style imports in excerpt (#3944)
lex111 Dec 21, 2020
83a5240
fix(v2): disables all inlining in CleanCSS (#3943)
lex111 Dec 21, 2020
24ea18e
docs(v2): Added information about setting `/` in routeBasePath (#3945)
Siemienik Dec 22, 2020
853e29d
fix(v2): minor a11y tweaks (#3946)
lex111 Dec 22, 2020
2791ccc
docs(v2): fix invalid JS example (#3952)
oze4 Dec 25, 2020
b5c46bd
feat(v2): new docs edit options: editCurrentVersion + editLocalizedDo…
slorber Dec 28, 2020
b54ec93
docs(v2): Update deployment.mdx (#3950)
samhrncir Dec 28, 2020
6ce1230
refactor(v2): fix debug plugin name (#3953)
RDIL Dec 28, 2020
41ac446
fix(v2): allow async/await in live code editor (#3954)
9oelM Dec 28, 2020
601c8fe
docs(v2): update FB OSS logo (#3881)
Simek Dec 28, 2020
88a6f56
fix(v2): fix redirect toUrl (windows + trailing slash) (#3903)
saydo17 Dec 28, 2020
863a4d8
fix(v2): remove duplicate section on Versions page (#3960)
lex111 Dec 28, 2020
141d062
chore(v2): fix windows Jest tests (#3959)
slorber Dec 28, 2020
e5610a4
docs(v2): Add migration info doc regarding docs folder location (#3962)
slorber Dec 29, 2020
5944226
fix(v2): fix svg loader for CSS files (#3965)
apurvaojas Dec 29, 2020
9fdac1a
fix(v2): fix blog only contextual search (#3968)
slorber Dec 29, 2020
1e18606
fix(v2): fix multi-instance mdx loaders not sandboxed correctly (#3970)
slorber Dec 30, 2020
c61b49a
docs(v2): doc typo on sidebar admonition (#3974)
slorber Dec 30, 2020
a0c5177
docs(v2): Add AI-Speaker site to showcase page (#3976)
asystentka-jolka Dec 30, 2020
d99d53a
docs(v2): Reorganize/split the guides doc sections (#3975)
slorber Dec 30, 2020
cf086ab
docs(v2): nudge users to add site to showcase (#3977)
slorber Dec 30, 2020
d5d6e2f
docs(v2): Add documentation for docs multi-instance support (#3978)
slorber Dec 30, 2020
869e118
feat(v2): better error message for invalid plugin config (#3979)
9oelM Dec 31, 2020
0bb5e54
feat(v2): skip dependency install on docusaurus init (#3986)
kumaraditya303 Jan 4, 2021
6e9ed1c
docs(v2): Add AgileTs site to showcase page (#3987)
bennobuilder Jan 4, 2021
d2d2872
chore(v2): fix date-sensitive test fixture (#3988)
slorber Jan 4, 2021
da23912
docs(v2): add overwriting css variables for dark mode (#3991)
natac13 Jan 4, 2021
5784125
chore(v2): remove docs for alpha v65 (#3995)
lex111 Jan 4, 2021
7c597bb
docs(v2): Add wiki-powerto site showcase (#3990)
linyuxuanlin Jan 5, 2021
6cb99bf
chore(v2): Upgrade crowdin (#4001)
slorber Jan 5, 2021
f48d435
feat(v2): Cache hashed assets to dedicated folders (#3998)
kumaraditya303 Jan 5, 2021
89a2ba7
docs(v2): Add Datagit site to showcase page (#3997)
massoudmaboudi Jan 5, 2021
8a9dfcf
fix(v2): Fix double trailingSlash in sitemap.xml (#4004)
ntbosscher Jan 6, 2021
5dfa665
feat(v2): themed logo in footer (#3993)
natac13 Jan 6, 2021
3ebe9ca
docs(v2): Add how to run your own DocSearch (#4002)
TheodoreChu Jan 6, 2021
c4cbe8e
chore(v2): prettier fixes (#4005)
slorber Jan 6, 2021
d8ef2a9
docs: fix typo from 'dissapear' to 'disappear' (#4022)
vamsi3 Jan 10, 2021
827de9a
feat: add new policy links to Docusaurus site and FB template (#4019)
JoelMarcey Jan 10, 2021
2ba55b0
fix(v2): fix accessibility issue with IconArrow (#4011)
natac13 Jan 10, 2021
e5373d9
chore: Add GitHub Actions CI score badge (#4018)
meercodebot Jan 11, 2021
c19c9e5
chore: add DevContainer config for GitHub codespaces (#4003)
kumaraditya303 Jan 11, 2021
a406a3c
chore(v2): docusaurus-init: switch from inquirer to prompts (#4012)
RDIL Jan 11, 2021
66cc736
feat(v2): Allow plugins to consume webpack stats (#4021)
RDIL Jan 11, 2021
20b6997
chore(v2): install Crowdin cli through npm package (#4030)
slorber Jan 12, 2021
e6a00d4
docs(v2): Add FlexIt to showcase (#4026)
ataft Jan 12, 2021
18002ed
docs(v1): suggest to use Docusaurus 2 even for non-FB websites (#4038)
slorber Jan 13, 2021
e72869f
chore(v1): upgrade v1 Crowdin cli + CI config (#4040)
slorber Jan 13, 2021
f1039cf
chore(v1): revert v1 netlify.toml (#4041)
slorber Jan 13, 2021
2402336
docs(v2): Add Nodify to showcase (#4036)
miroiu Jan 14, 2021
c94b445
docs(v2): add sciwp to showcase (#4046)
edulazaro Jan 14, 2021
0252d01
docs(v2): Add READMEs to v2 packages (#4034)
RDIL Jan 14, 2021
0f49192
docs(v1): version page should recommend v2 (#4047)
slorber Jan 14, 2021
0a75ed5
docs(v1): version page should recommend v2 (bis) (#4049)
slorber Jan 14, 2021
13bfe8d
docs(v1): Docker: remind the user to use the --host flag (#4048)
tomsfernandez Jan 15, 2021
bb925a6
docs(v2): Add Eightshift Docs site to showcase page (#4053)
iruzevic Jan 16, 2021
83c5e2a
feat(v2): new.docusaurus.io -> CodeSandbox
slorber Jan 17, 2021
9ea1b1a
chore(v2): update codesandbox redirect (#4056)
slorber Jan 18, 2021
458bf67
docs(v2): Include new.docusaurus.io CodeSandbox in issue templates + …
slorber Jan 18, 2021
b93d95b
docs(v2): Add codesandbox integration (#4062)
sammychinedu2ky Jan 19, 2021
c6ce46a
chore(v2): Regen codesandbox templates + add template: "docusaurus" (…
slorber Jan 19, 2021
af8dc63
docs(v2): add hideableSidebar option to config demo (#4009)
natac13 Jan 19, 2021
a8ee7fd
docs(v2): i18n doc + polish (#4014)
slorber Jan 19, 2021
581f357
docs(v2): 2020 recap blog post (#4020)
slorber Jan 19, 2021
0a5d306
fix(v2): Fix blog post url/date (#4067)
slorber Jan 19, 2021
eeb167e
polish(v2): improve codesandbox template package.json (#4074)
slorber Jan 20, 2021
ca6b5c9
chore(v2): Update a few dependencies (#4066)
RDIL Jan 20, 2021
a2efe9f
chore(v2): fix unstable master yarn.lock (#4077)
slorber Jan 20, 2021
d6d30a3
fix(v2): chokidar reloading debounced (#4080)
semoal Jan 21, 2021
a36abd8
chore(v2): Update webpack-related dependencies, pre-work to migrate t…
RDIL Jan 21, 2021
8a934ac
docs(v2): Use the TOCInline component in config doc (#4084)
slorber Jan 21, 2021
869ebe7
fix(v2): fix/enhance minor i18n issues reported (#4092)
slorber Jan 22, 2021
e030d34
chore(v2): remove docs for alpha v66 (#4100)
lex111 Jan 25, 2021
d5de891
docs(v2): update broken link on resources page (#4106)
eric-hc Jan 27, 2021
22e2319
feat(v2): improve templates, use JSDoc type annotation, improve `docu…
Jan 27, 2021
b49ff32
style(v2): add className to tab container (#4086)
ArtFlag Jan 27, 2021
95f81d2
refactor(v2): Switch from inquirer to prompts (#4091)
RDIL Jan 27, 2021
6917eb9
feat(v2): supports string type for the Layout's keywords props (#4090)
wellyshen Jan 27, 2021
beddecb
feat(v2): default canonical urls (#4109)
slorber Jan 28, 2021
671748f
docs(v2): Do not encourage using the permalink prop (#4112)
slorber Jan 28, 2021
3031c47
fix(v2): navbar dropdown subitems should be translated properly(#4118)
slorber Jan 28, 2021
15c50e2
chore(v2): Update workbox to v6 (#4120)
RDIL Jan 29, 2021
be7b5dc
feat(v2): editUrl function for advanced use-cases (#4121)
slorber Jan 29, 2021
9c4bf4e
fix(v2): baseUrl help banner should not be indexed by Google / SEO (#…
slorber Jan 29, 2021
140bfbf
docs(v2): do not recommend using useBaseUrl() hook in most cases (#4126)
slorber Jan 29, 2021
6b194c6
docs(v2): typo in i18n docs (#4130)
ayonious Jan 31, 2021
0c80fa8
fix(v2): remove unnecessary brace from installation doc (#4127)
ayonious Jan 31, 2021
30c8e26
docs(v2): typo of Word Process (#4129)
ayonious Jan 31, 2021
39edfe3
fix(v2): fix navigation from homepage (#4136)
lex111 Jan 31, 2021
e53d63b
docs(v2): Fix file path in "Wrapper your site with `<Root>`" (website…
geoseong Feb 1, 2021
aed23e2
docs(v2): remove unnecessary link from docs that looks like a duplica…
ayonious Feb 1, 2021
9891065
docs(v2): Add Rematch site to showcase page (#4139)
Feb 1, 2021
d801ce5
fix(v2): escape apostrophe in route paths (#4137)
lex111 Feb 1, 2021
219a4b7
docs(v2): plugins docs typo fix (#4141)
ayonious Feb 1, 2021
f0f3de8
docs(v2): guide docs typo fix (#4143)
ayonious Feb 1, 2021
6f4aad7
docs(v2): community docs typo fix (#4144)
ayonious Feb 1, 2021
0928418
fix(v2): use current color for language icon (#4146)
lex111 Feb 1, 2021
fd17476
fix(v2): avoid misuse section tag in blog posts (#4147)
lex111 Feb 1, 2021
d22039c
chore(v2): upgrade dependencies (#4148)
lex111 Feb 2, 2021
3b64aa6
fix(v2): BaseUrl issue banner insertion should be prevented if JS can…
slorber Feb 2, 2021
fe6b841
chore(v2): fix build size bot monitoring of js/css assets (#4156)
slorber Feb 2, 2021
f5494af
fix(v2): add base url to opensearch.xml (#4154)
lex111 Feb 2, 2021
e807bff
docs(v2): improve bad static assets doc + remove some useless useBase…
slorber Feb 2, 2021
ffb2d29
chore(v2): fix build-size bot again (#4159)
slorber Feb 2, 2021
98453eb
fix(v2): fix hreflang i18n SEO meta (#4160)
slorber Feb 3, 2021
3f6e043
fix(v2): make more accessible skip link (#4162)
lex111 Feb 3, 2021
d25e0f4
fix(v2): fix warning and improve styling inline TOC (#4163)
lex111 Feb 3, 2021
9fc30b3
docs(v2): Add docusaurus-theme-github-codeblock (#4161)
christian-bromann Feb 3, 2021
24b1695
docs(v2): add a note for images not rendered on dev server (#4164)
yuval-hazaz Feb 3, 2021
823d0fe
fix(v2): ideal image assets should be served under ./assets (#4166)
slorber Feb 3, 2021
ab79515
feat(v2): Extract/translate hardcoded labels from classic theme (#4168)
slorber Feb 3, 2021
4d3573d
docs(v2): update check yarn installation command (#4170)
jlin27 Feb 3, 2021
d63a77d
refactor(v2): remove delay after skip link pressed (#4169)
lex111 Feb 4, 2021
dbfa256
refactor(v2): minor styling improvements (#4167)
lex111 Feb 4, 2021
385d8b6
docs(v2): typo fixing double colon (#4173)
ayonious Feb 4, 2021
f788ba4
docs(v2): Add react-hooks.org to showcase (#4172)
imbhargav5 Feb 4, 2021
6af8fbb
docs(v2): Add docusaurus-plugin-remote-content to resources list (#4177)
RDIL Feb 4, 2021
e3ae349
docs(v2): localize 404 page with Netlify + docs (#4178)
slorber Feb 4, 2021
a6f7715
fix(v2): make locale dropdown accessible from keyboard (#4176)
lex111 Feb 5, 2021
5871d1b
fix(v2): fix broken link in warning about useThemeContext (#4183)
vamsi3 Feb 6, 2021
b0e38d5
docs(v2): add Hashnode support site to showcase (#4171)
iamshadmirza Feb 8, 2021
d6510b6
fix(v2): prepend docsearch modal to body element (#4188)
lex111 Feb 8, 2021
174b420
refactor(v2): use transform instead of top position for hideable navb…
lex111 Feb 8, 2021
cfeadbf
fix(v2): prevent click on item menu with children on mobiles (#4189)
lex111 Feb 8, 2021
fc071b0
fix(v2): restore hamburger menu (#4195)
lex111 Feb 8, 2021
00c1e8d
refactor(v2): update tabs to follow WAI-ARIA (#4193)
lex111 Feb 8, 2021
c5d3a86
docs(v1): fixing a broken link in blog posts (#4204)
ayonious Feb 9, 2021
74a58ef
fix(v2): various minor bugs with location hash (#4200)
lex111 Feb 9, 2021
2a12869
feat(v2): add fonts loaders + webpack resolve.roots (#4198)
slorber Feb 9, 2021
b3b658f
feat(v2): allow to change location of search bar (#4199)
lex111 Feb 9, 2021
2fb642d
feat(v2): allow extend PostCSS config (#4185)
lex111 Feb 9, 2021
0ac34b7
feat(v2): add support for RTL direction (#4140)
lex111 Feb 10, 2021
780afe5
fix(v2): typo in resolve.roots (#4212)
slorber Feb 10, 2021
bdb7b9b
docs(v2): Added Console Table Printer documentation to showcase (#4207)
ayonious Feb 10, 2021
7f6c4be
misc(v2): add requirements for sites being added to showcase (#4210)
lex111 Feb 10, 2021
1b3c9be
chore(v2): setup for i18n staging deployment (#4214)
slorber Feb 11, 2021
6a94ad9
feat(v2): Add i18n default code translation bundles (#4215)
slorber Feb 12, 2021
175d9c3
feat(v2): support/use React v17 by default (#4218)
lex111 Feb 12, 2021
11c2426
docs(v2): Add WebdriverIO docs page as showcase (#4220)
christian-bromann Feb 12, 2021
f8044d7
docs(v2): Add MikroORM site to showcase page (#4224)
B4nan Feb 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 14 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ jobs:
if ! git diff-tree --no-commit-id --name-only -r HEAD | grep -E "(^docs\/.*)|(docusaurus-1\.x\/.*)|(website-1\.x\/.*)"; then
echo "Skipping deploy. No relevant v1 website files have changed"
elif [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
echo "Deploying website..."
echo "Deploying website v1..."
cd website-1.x

# install Docusaurus and generate file of English strings
cd website-1.x && yarn run write-translations
# install Crowdin
sudo apt-get update
sudo apt-get install default-jre rsync
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
sudo dpkg -i crowdin.deb
sleep 5
yarn run write-translations

# upload translation strings and download translations
yarn run crowdin-upload
yarn crowdin-upload

# download only enabled languages
for lang in fr ko ru ro pt-BR zh-CN
do
yarn crowdin-download -l $lang
done
yarn crowdin-download
# for lang in fr ko ru ro pt-BR zh-CN
# do
# yarn crowdin-download -l $lang
# done

# publish
GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages
else
Expand All @@ -119,4 +119,4 @@ workflows:
- deploy-website:
requires:
- tests
filters: *filter-only-master
filters: *filter-only-master
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Docusaurus Dev Container",
"image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:0-10-buster",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": ["dbaeumer.vscode-eslint"],
"forwardPorts": [3000],
"postCreateCommand": "yarn install"
}
24 changes: 7 additions & 17 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
__fixtures__
dist
node_modules
.yarn
build
coverage
jest.config.js
jest.transform.js
website-1.x/
website/
scripts

packages/docusaurus/lib/
packages/docusaurus-*/lib/*
!packages/docusaurus-1.x/lib/*
packages/docusaurus-1.x/lib/core/__tests__/split-tab.test.js
packages/docusaurus-1.x/lib/core/metadata.js
packages/docusaurus-1.x/lib/core/MetadataBlog.js
packages/docusaurus-1.x/lib/core/__tests__/split-tab.test.js
packages/docusaurus-utils/lib/
packages/docusaurus-utils-validation/lib/
packages/docusaurus/lib/
packages/docusaurus-init/lib/
packages/docusaurus-plugin-client-redirects/lib/
packages/docusaurus-plugin-content-blog/lib/
packages/docusaurus-plugin-content-docs/lib/
packages/docusaurus-plugin-content-pages/lib/
packages/docusaurus-plugin-debug/lib/
packages/docusaurus-plugin-sitemap/lib/
packages/docusaurus-plugin-ideal-image/lib/
packages/docusaurus-*/lib-next/
packages/docusaurus-plugin-ideal-image/copyUntypedFiles.js
packages/docusaurus-theme-common/lib/
packages/docusaurus-theme-classic/lib/
packages/docusaurus-theme-classic/lib-next/
packages/docusaurus-theme-bootstrap/lib/
packages/docusaurus-migrate/lib/

packages/docusaurus-1.x/.eslintrc.js
packages/docusaurus-init/templates/facebook/.eslintrc.js
Expand Down
20 changes: 19 additions & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ about: Submit a bug report to help us improve
labels: 'bug, needs triage'
---

<!--

! PLEASE HELP US HELP YOU !

Bugs are fixed faster if you include:
- a repro repository to inspect the code
- an url to see the problem live (if possible)

Pro tip: create a reproducible demo of the bug with https://new.docusaurus.io

-->

## 🐛 Bug Report

(A clear and concise description of what the bug is)
Expand All @@ -14,6 +26,8 @@ labels: 'bug, needs triage'

## To Reproduce

If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.

(Write your steps here:)

1. Step 1...
Expand Down Expand Up @@ -45,13 +59,17 @@ labels: 'bug, needs triage'

<!-- Include as many relevant details about the environment you experienced the bug in -->

- Public source code:
- Public site url:
- Docusaurus version used:
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0):
- Operating system and version (desktop or mobile):

## Reproducible Demo

(Paste the link to an example repo, including a `siteConfig.js`, and exact instructions to reproduce the issue.)
If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.

(Paste the link to an example repo, including a `docusaurus.config.js`, and exact instructions to reproduce the issue.)

<!--
What happens if you skip this step?
Expand Down
14 changes: 8 additions & 6 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
name: Questions/Help
about: If you have questions, please check Stack Overflow or Discord or Twitter
name: 🚫 Questions/Help
about: 🚫 Please ask questions on GitHub discussions, Discord or Stack Overflow
labels: 'questions, needs triage'
---

## Questions and Help
## 🚫 Questions and Help

### Please note that this issue tracker is not a help form and this issue will be closed.
### Please note that this issue tracker is 🚫 NOT a help form 🚫 and this issue will be closed.

Please contact us instead. We have a few channels:
For beginners questions: ask the Docusaurus community:

- [Discord](https://discord.gg/docusaurus) (most active channel)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/docusaurus)
- [Twitter](https://twitter.com/docusaurus)
- [Discord](https://discord.gg/docusaurus)

For advanced/unanswered questions: ask on [GitHub Discussions](https://github.com/facebook/docusaurus/discussions).
6 changes: 3 additions & 3 deletions .github/workflows/build-size.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Size
name: Build Size Report

on:
pull_request_target:
Expand All @@ -8,12 +8,12 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
pattern: '{website/build/main*js,website/build/styles*css,website/build/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/introduction/index.html}'
build-script: 'build:v2:en'
pattern: '{website/build/assets/js/main*js,website/build/assets/css/styles*css,website/build/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/introduction/index.html}'
strip-hash: '\.([^;]\w{7})\.'
minimum-change-threshold: 100
53 changes: 53 additions & 0 deletions .github/workflows/canary-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Canary releases

on:
push:
branches:
- master

jobs:
checkPackagesHaveChanged:
runs-on: ubuntu-latest
outputs:
packagesHaveChanged: ${{ steps.filter.outputs.packagesHaveChanged }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
packagesHaveChanged:
- 'packages/**'

publish-canary:
needs: checkPackagesHaveChanged
if: ${{ needs.checkPackagesHaveChanged.outputs.packagesHaveChanged == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Prepare git
run: |
git config --global user.name "Docusaurus Canary"
git config --global user.email "canary@docusaurus.io"
git fetch
git checkout master
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
cat .npmrc
echo "npm whoami"
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Installation
run: yarn
- name: Publish Canary release
run: |
yarn canary
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
18 changes: 8 additions & 10 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: E2E Test

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
Expand All @@ -15,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
node: ['10']
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
- name: Installation
run: yarn
- name: Setup test-website project against master release
Expand All @@ -40,13 +38,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
node: ['14']
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
- name: Installation
run: yarn
- name: Setup test-website project against master release
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/lighthouseCI.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
name: Lighthouse CI
name: Lighthouse Report

on: pull_request_target

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and Build
run: |
yarn install
yarn build
- name: Wait for the Netlify Preview
uses: jakepartusch/wait-for-netlify-action@v1
id: netlify
with:
site_name: 'docusaurus-2'
max_timeout: 600
- name: Audit URLs using Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v3
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/migration-cli-e2e-test.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
name: MIGRATION CLI E2E TEST
name: Migration CLI E2E Test

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
outputs:
migration: ${{ steps.filter.outputs.migration }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
migration:
- 'packages/docusaurus-migration/**'
build:
needs: check
if: ${{ needs.check.outputs.migration == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
node: ['10']
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
- name: Installation
run: yarn
- name: Migrate D1 website
Expand Down
Loading