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

Jest Website v2 #11149

Merged
merged 12 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@ jobs:
- store_test_results:
path: reports/junit

test-or-deploy-website:
working_directory: ~/jest
executor: node/default
resource_class: large
steps:
- checkout
- node/install:
lts: true
install-npm: false
- node/install-packages: *install
- run:
name: Test or Deploy Jest Website
command: ./.circleci/website.sh

# Workflows enables us to run multiple jobs in parallel
workflows:
version: 2
Expand All @@ -107,5 +93,3 @@ workflows:
- test-node-14
- test-node-15 # current
- test-jest-jasmine
- test-or-deploy-website:
filters: *filter-ignore-gh-pages
35 changes: 0 additions & 35 deletions .circleci/website.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ bin/
flow-typed/**
packages/*/build/**
packages/jest-diff/src/cleanupSemantic.ts
website/.docusaurus
website/blog
website/build
website/node_modules
website/i18n/*.js
website/translated_docs
website/static
!.eslintrc.js
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ module.exports = {
'sort-keys': 'off',
},
},
{
files: ['website/**/*'],
rules: {
'import/order': 'off',
'import/sort-keys': 'off',
'sort-keys': 'off',
},
},
{
files: ['examples/**/*'],
rules: {
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
/packages/*/coverage/
/packages/*/node_modules/

/website/.docusaurus
/website/build
/website/backers.json
/website/node_modules
/website/yarn.lock
/website/translated_docs
/website/i18n/*

/benchmarks/*/node_modules/
Expand All @@ -48,3 +48,5 @@ package-lock.json
!**/.yarn/sdks
!**/.yarn/versions
**/.pnp.*

crowdin-cli.jar
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ The best way to get your bug fixed is to provide a reduced test case. Please pro

### Docs translation

We get translations from crowdin, see https://crowdin.com/project/jest. Any and all help is very much appreciated!
We get translations from Crowdin, see https://crowdin.com/project/jest-v2. Any and all help is very much appreciated!

### Security Bugs

Expand Down
92 changes: 45 additions & 47 deletions crowdin.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,48 @@
project_identifier_env: CROWDIN_JEST_PROJECT_ID
api_key_env: CROWDIN_JEST_API_KEY
base_path: './'
#
# Your Crowdin credentials
#
project_id: '428892'
api_token_env: 'CROWDIN_PERSONAL_TOKEN'

base_path: '.'
base_url: 'https://api.crowdin.com'
preserve_hierarchy: true

# See Yaml anchors: https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/
languages_mapping: &languages_mapping
locale:
'es-ES': 'es-ES'
'ja': 'ja'
'pt-BR': 'pt-BR'
'ro': 'ro'
'ru': 'ru'
'uk': 'uk'
'zh-CN': 'zh-Hans'

#
# Files configuration
# see https://support.crowdin.com/configuration-file/
#
files:
- source: '/docs/*.md'
translation: '/website/translated_docs/%locale%/%original_file_name%'
languages_mapping: &anchor
locale:
'af': 'af'
'ar': 'ar'
'bs-BA': 'bs-BA'
'ca': 'ca'
'cs': 'cs'
'da': 'da'
'de': 'de'
'el': 'el'
'es-ES': 'es-ES'
'fa': 'fa-IR'
'fi': 'fi'
'fr': 'fr'
'he': 'he'
'hu': 'hu'
'id': 'id-ID'
'it': 'it'
'ja': 'ja'
'ko': 'ko'
'mr': 'mr-IN'
'nl': 'nl'
'no': 'no-NO'
'pl': 'pl'
'pt-BR': 'pt-BR'
'pt-PT': 'pt-PT'
'ro': 'ro'
'ru': 'ru'
'sk': 'sk-SK'
'sr': 'sr'
'sv-SE': 'sv-SE'
'tr': 'tr'
'uk': 'uk'
'vi': 'vi'
'zh-CN': 'zh-Hans'
'zh-TW': 'zh-Hant'
- source: '/website/versioned_docs/**/*.md'
translation: '/website/translated_docs/%locale%/**/%original_file_name%'
languages_mapping: *anchor
- source: '/website/i18n/en.json'
translation: '/website/i18n/%locale%.json'
languages_mapping: *anchor
[
{
'source': '/website/i18n/en/**/*',
'translation': '/website/i18n/%locale%/**/%original_file_name%',
'languages_mapping': *languages_mapping,
},
{
'source': '/docs/**/*',
'translation': '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%',
'languages_mapping': *languages_mapping,
},
{
'source': '/website/versioned_docs/**/*',
'translation': '/website/i18n/%locale%/docusaurus-plugin-content-docs/**/%original_file_name%',
'languages_mapping': *languages_mapping,
},
{
'source': '/website/blog/**/*',
'translation': '/website/i18n/%locale%/docusaurus-plugin-content-blog/**/%original_file_name%',
'languages_mapping': *languages_mapping,
},
]
4 changes: 3 additions & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ jest --update-snapshot --detectOpenHandles

_Note: CLI options take precedence over values from the [Configuration](Configuration.md)._

<AUTOGENERATED_TABLE_OF_CONTENTS>
import TOCInline from "@theme/TOCInline"

<TOCInline toc={toc[toc.length - 1].children}/>

---

Expand Down
Loading