-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
feat(website): Introduction to textlint #986
Merged
+1,236
−77
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f8e9410
chore: add textlint-related package
f845d3c
feat: add textlint command
86d8f8b
feat: set up textlint rules
6c73bdf
feat: add textlint command to ci
fbbee27
fix: only deal with the content of ja.
5d8c952
fix: rule
bdf3cbb
feat: CI for running Japanese translation checks in textlint
b67f7fe
fix: the rule 4.3.2.大かっこ[] is set to false.
58caa8e
fix: formatting by textlint:fix
af0e20c
fix: rules for format
9f0a516
fix: automatic formatting of format errors with textlint:fix
f5dc602
remove: `Run textlint` from website deploy ci
4cb6f1f
Merge branch 'main' into feat/textlint
90eb566
fix: Automatic formatting of `integrate-in-editor.mdx` by `textlint:fix`
aa7e19d
Discard changes to .github/workflows/website_deploy_preview.yml
unvalley 0d565e0
Update website/src/content/docs/ja/guides/getting-started.mdx
unvalley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Checks for Japanese Documentation | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "website/src/content/docs/ja/**" | ||
|
||
jobs: | ||
ja-docs-check: | ||
name: Checks on JA Docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout PR Branch | ||
uses: actions/checkout@v4 | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/action-setup@v2.2.4 | ||
with: | ||
version: 8 | ||
- name: Install libraries | ||
working-directory: website | ||
run: pnpm i | ||
- name: Run textlint | ||
working-directory: website | ||
run: pnpm textlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Website preview | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
# Cancel jobs when the PR is updated | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
jobs: | ||
preview-deploy: | ||
runs-on: ubuntu-latest | ||
environment: Website deployment | ||
# Check if the event is not triggered by a fork | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/action-setup@v2.2.4 | ||
with: | ||
version: 8 | ||
- name: Install toolchain | ||
uses: moonrepo/setup-rust@v1 | ||
- name: Install wasm-pack | ||
uses: jetli/wasm-pack-action@v0.4.0 | ||
with: | ||
version: "latest" | ||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
working-directory: website | ||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build WASM module for the web | ||
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --scope biomedev crates/biome_wasm | ||
- name: Install libraries | ||
working-directory: website | ||
run: pnpm i | ||
- name: Build JS | ||
working-directory: website | ||
run: pnpm build:js | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||
working-directory: website |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yossydev
I think we don't need this workflow file, because we are currently using netlify. And netlify provides the preview feature by itself.