Skip to content

Commit

Permalink
Merge branch 'master' into lex111/back-to-top-button
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jul 9, 2021
2 parents 188c3bc + 9536ef9 commit 5f1d26f
Show file tree
Hide file tree
Showing 1,048 changed files with 18,222 additions and 51,522 deletions.
7 changes: 1 addition & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@ build
coverage
jest.config.js
jest.transform.js
website-1.x/
website/
scripts
examples/

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-*/lib-next/
packages/docusaurus-plugin-ideal-image/copyUntypedFiles.js

packages/docusaurus-1.x/.eslintrc.js
packages/docusaurus-init/templates/facebook/.eslintrc.js

examples/bootstrap/babel.config.js
Expand Down
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ module.exports = {
'no-unused-vars': OFF,
'no-nested-ternary': WARNING,
'@typescript-eslint/no-empty-function': OFF,
'@typescript-eslint/no-non-null-assertion': OFF, // Have to use type assertion anyways
'@typescript-eslint/no-unused-vars': [ERROR, {argsIgnorePattern: '^_'}],
'@typescript-eslint/ban-ts-comment': [
ERROR,
Expand All @@ -113,7 +114,7 @@ module.exports = {
'prefer-destructuring': WARNING,
yoda: WARNING,
'no-control-regex': WARNING,
'no-empty': WARNING,
'no-empty': [WARNING, {allowEmptyCatch: true}],
'no-prototype-builtins': WARNING,
'no-case-declarations': WARNING,
'no-undef': OFF,
Expand All @@ -130,6 +131,7 @@ module.exports = {
],
rules: {
'header/header': OFF,
'global-require': OFF,
},
},
{
Expand Down
21 changes: 14 additions & 7 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ labels: 'bug, needs triage'
! PLEASE HELP US HELP YOU !
Make it obvious to understand and reproduce this bug.
Ideally, we should be able to understand it without running any code.
Bugs are fixed faster if you include:
- a repro repository to inspect the code
- an url to see the problem live (if possible)
Expand All @@ -29,6 +32,8 @@ This way we know you've done these steps first.
- [ ] I'm using the latest version of Docusaurus.
- [ ] I have tried the `npm run clear` or `yarn clear` command.
- [ ] I have tried `rm -rf node_modules yarn.lock package-lock.json` and re-installing packages.
- [ ] I have tried creating a repro with https://new.docusaurus.io
- [ ] I have read the console error message carefully (if applicable)

### Description

Expand All @@ -38,9 +43,9 @@ This way we know you've done these steps first.

(Write your answer here.)

## To Reproduce
## Steps to reproduce

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

(Write your steps here:)

Expand All @@ -58,18 +63,20 @@ If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible

(Write what you thought would happen.)

## Actual Behavior
## Actual behavior

<!--
Did something go wrong?
Is something broken, or not behaving as you expected?
Describe this section in detail, and attach screenshots if possible.
Don't only say "it doesn't work"!
Please submit exhaustive and complete log messages (we also need the error strack-traces, not just the message).
Please read error messages carefully: it often tells you exactly what you are doing wrong
-->

(Write what happened. Add screenshots, if applicable.)
(Write what happened. Add full console log messages and screenshots, if applicable.)

## Your Environment
## Your environment

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

Expand All @@ -79,9 +86,9 @@ If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0):
- Operating system and version (e.g. Ubuntu 20.04.2 LTS):

## Reproducible Demo
## Reproducible demo

If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
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.)

Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 🚀 Feature request
url: https://docusaurus.io/feedback/
about: The Canny board to send us feature requests, vote and measure the interest of users. Useful to submit a featurre request when you have an idea but no concrete api design proposal.
- name: ❓ Simple question - Discord chat
url: https://discord.gg/docusaurus
about: This issue tracker is not for technical support. Please use our Discord chat, and ask the community for help.
Expand Down
45 changes: 33 additions & 12 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
name: 🚀 Feature
about: Submit a proposal/request for a new feature
name: 💅 Feature design / RFC
about: Submit a detailed feature request with a concrete proposal, including an exhaustive API / UI design
labels: 'feature, needs triage'
---

<!--
Consider requesting the feature on https://docusaurus-2.netlify.com/feedback/ instead.
Feature requests on v1 are more likely to be missed as we're focusing on building v2.
IMPORTANT:
- We expect you to submit a feature request including a real design (API / UI...), not just a basic idea
- The design does not have to be perfect, we'll discuss it and fix it if needed
- For a more "casual" feature requests, consider using Canny instead: https://docusaurus.io/feedback
-->

## 🚀 Feature
Expand All @@ -17,20 +19,39 @@ labels: 'feature, needs triage'

(Write your answer here.)

### Has this been requested on [Canny](https://docusaurus.io/feedback)?

(Please post the Canny link, it is helpful to see how much interest there is for this feature)

## Motivation

(Please outline the motivation for the proposal.)
(Please outline the motivation for the proposal and why it should be implemented. Has this been requested by a lot of users on our )

## API Design

(Please describe how Docusaurus users will enable and configure this feature, and what it will look like)

<!--
Please explain in an exhaustive way what are the config/plugin options and their respective effects.
For visual elements, please send us some screenshots/mockups of what it should look like. You can use https://excalidraw.com to create simple mockups.
-->

<!--
What happens if you skip this step? This issue will be automatically closed.
Your feature request is just an idea for now, please use Canny for that: https://docusaurus.io/feedback
-->

## Pitch
## Have you tried building it?

(Please explain why this feature should be implemented and how it would be used.)
(Please explain how you tried to build the feature by yourself, and how successful it was)

<!--
What happens if you skip this step?
Docusaurus 2 has a plugin system and theming support.
Quite often, this gives you the opportunity to build the feature you need by yourself.
Someone will read your feature proposal and maybe will be able to help you,
but it’s unlikely that it will get much attention from the team. Eventually,
the issue will likely get closed in favor of issues that have better explanations
We expect you to put your own work in this feature, particularly if it is not requested by a lot of users.
If we see it in action on your own site, it is easier to understand its value, and how it should work.
Thanks for helping us help you!
If you can't build it yourself for technical reasons, please explain why.
We are willing to help you, and eventually providing new APIs to make it possible.
-->
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ labels: 'proposal, needs triage'
---

<!--
Consider requesting the feature on https://docusaurus-2.netlify.com/feedback/ instead.
Feature requests on v1 are more likely to be missed as we're focusing on building v2.
This is not for feature requests.
Consider requesting the feature on https://docusaurus.io/feedback instead.
-->

## 💥 Proposal
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
- name: Installation
uses: bahmutov/npm-install@v1
with:
install-command: yarn install --immutable # Fails if yarn.lock is modified
install-command: yarn install
# install-command: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
- name: Check immutable yarn.lock
run: git diff --exit-code
- name: Lint
run: yarn lint:ci
- name: Prettier Code
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/migration-cli.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/v1-tests-windows.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/v1-tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/v2-build-size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
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}'
pattern: '{website/build/assets/js/main*js,website/build/assets/css/styles*css,website/.docusaurus/globalData.json,website/build/index.html,website/build/blog/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/index.html,website/build/docs/installation/index.html,website/build/docs-tests/index.html,website/build/docs-tests/standalone/index.html}'
strip-hash: '\.([^;]\w{7})\.'
minimum-change-threshold: 30
compression: 'none'
2 changes: 2 additions & 0 deletions .github/workflows/v2-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
matrix:
node: ['12', '14']
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@ test-website

packages/docusaurus/lib/
packages/docusaurus-*/lib/*
!packages/docusaurus-1.x/lib/*
packages/docusaurus-1.x/lib/core/metadata.js
packages/docusaurus-1.x/lib/core/MetadataBlog.js
packages/docusaurus-*/lib-next/

website/netlifyDeployPreview/*
!website/netlifyDeployPreview/index.html
!website/netlifyDeployPreview/_redirects

website-1.x-migrated

website/i18n/**/*
#!website/i18n/fr
#!website/i18n/fr/**/*
Expand Down
2 changes: 1 addition & 1 deletion .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_
_
4 changes: 0 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ coverage
.docusaurus
packages/docusaurus/lib/
packages/docusaurus-*/lib/*
!packages/docusaurus-1.x/lib/*
packages/docusaurus-1.x/lib/core/metadata.js
packages/docusaurus-1.x/lib/core/MetadataBlog.js
packages/docusaurus-*/lib-next/
__fixtures__

website-1.x/translated_docs
website/i18n
website/versions.json

Expand Down
Loading

0 comments on commit 5f1d26f

Please sign in to comment.