-
Notifications
You must be signed in to change notification settings - Fork 655
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(docs): migrate docs to docusaurus #4693
Merged
Merged
Changes from 42 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
c1498a6
docs: migrate to docusaurus (#3511)
srdtrk 4b1ee3c
Merge remote-tracking branch 'origin' into feat/migrate-fully-to-docu…
srdtrk 9561b7f
merge: remote-tracking branch 'origin' into feat/migrate-fully-to-doc…
srdtrk bbfe177
merge: remote-tracking branch 'origin' into feat/migrate-fully-to-doc…
srdtrk 2973c63
merge: fixing conficts
srdtrk 28030b7
merge: bringing back client docs
srdtrk 4080b85
merge: removing versions again
srdtrk 91d694e
merge: fix conflicts
srdtrk d8a2838
merge: remote branch 'origin' into feat/migrate-fully-to-docusaurus
srdtrk a978934
fix: merge conflicts
srdtrk b35bbb1
fix: merge conflicts
srdtrk 46e94ab
fix: merge conflicts
srdtrk 65d7dd3
docs: implement versioned documentation (#3577)
srdtrk da1444c
Merge branch 'main' into feat/migrate-fully-to-docusaurus
crodriguezvega 64cda6b
docs: workflow and linter improvements (#3805)
srdtrk 72cf0c1
merge: 'main' into 'feat/migrate-fully-to-docusaurus'
srdtrk 1114e96
merge: 'main' into 'feat/migrate-fully-to-docusaurus'
srdtrk de3cffe
feat: v7.3.x docs added
srdtrk 421e15c
imp: improved Makefile for serving docs
srdtrk 9e2ecc0
imp: checked out some problematic files
srdtrk 5637d2d
merge: 'main' into 'feat/migrate-fully-to-docusaurus'
srdtrk d17f3cd
fix: merge conflicts
srdtrk 616fa53
imp(docs): added versioned docs for v6.2.x
srdtrk 09cb304
ci: switched to docusaurus check and deploy workflows (#4688)
srdtrk bcd0e2b
merge: 'main' into 'feat/migrate-fully-to-docusaurus'
srdtrk 17be1a2
imp(lint): ignores all changelogs now
srdtrk ad8e7d5
imp: ran linter
srdtrk 3486ecb
imp(makefile): improved build-docs
srdtrk 8cb53b8
fix(docs): broken links
srdtrk 41e12d5
merge: branch 'main' into feat/migrate-fully-to-docusaurus
srdtrk 5a2cc40
imp: improved workflows around markdownlint
srdtrk 3cb359a
imp: improved workflows around markdownlint
srdtrk 30cd066
merge: branch 'main' into feat/migrate-fully-to-docusaurus
srdtrk bb3f81c
imp(docs): added the new ibc assets
srdtrk 907014e
merge: branch 'main' into feat/migrate-fully-to-docusaurus
srdtrk cce23d1
deps(docs): updated deps
srdtrk 124d849
style(docs): reorganized footer code
srdtrk d50668b
docs: fix cosmos-sdk broken links
srdtrk af89d41
merge: 'main' into 'feat/migrate-fully-to-docusaurus'
srdtrk 6f13552
imp(docs): removed link from the footer logo
srdtrk 964064b
imp(docs): improved footer
srdtrk f827d07
imp(docs): added a link to privacy policy
srdtrk dc0d523
deps(docs): added 'npm run dev' script
srdtrk 0dca0c7
merge: 'main' into 'feat/migrate-fully-to-docusaurus'
srdtrk 747c7ef
imp(docs): apply review item
srdtrk 5428c42
imp: ran 'make docs-lint'
srdtrk 374594c
imp: added 'make tag-docs-version'
srdtrk 437ced6
merge: branch 'main' into feat/migrate-fully-to-docusaurus
srdtrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ closes: #XXXX | |
|
||
### Commit Message / Changelog Entry | ||
|
||
```bash | ||
```text | ||
type: commit message | ||
``` | ||
|
||
|
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
# This check-docs workflow was created based on instructions from: | ||
# https://docusaurus.io/docs/deployment | ||
name: Check docs build | ||
# This workflow runs when a PR is labeled with `docs` | ||
# This will check if the docs build successfully by running `npm run build` | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- './docs' | ||
|
||
jobs: | ||
check-docs-build: | ||
if: ${{ github.event.label.name == 'docs' }} | ||
|
||
name: Check docs build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install dependencies and build docs 🧱 | ||
run: | | ||
cd docs | ||
npm install | ||
npm run build | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Test build website | ||
run: npm run build |
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 |
---|---|---|
@@ -1,43 +1,37 @@ | ||
name: Deploy docs | ||
# This job builds and deploys documenation to github pages. | ||
# It runs on every push to main with a change in the docs folder. | ||
# This deploy-docs workflow was created based on instructions from: | ||
# https://docusaurus.io/docs/deployment | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- "release/**" | ||
paths: | ||
- "docs/**" | ||
- .github/workflows/deploy-docs.yml | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-and-deploy: | ||
permissions: | ||
contents: write # for JamesIves/github-pages-deploy-action to push changes in repo | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cosmos/website-deployment | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
ref: "main" | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
path: "." | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Build 🔧 | ||
run: | | ||
git config --global --add safe.directory /__w/ibc-go/ibc-go | ||
make build-docs LEDGER_ENABLED=false | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build website | ||
run: npm run build | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
# Popular action to deploy to GitHub Pages: | ||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
branch: gh-pages | ||
folder: ~/output | ||
single-commit: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Build output to publish to the `gh-pages` branch: | ||
publish_dir: ./build |
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
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
name: Check Markdown links | ||
on: pull_request | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.md" | ||
- "!.github/**" | ||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
config-file: '.github/workflows/link-check-config.json' | ||
- uses: actions/checkout@v4 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
config-file: '.github/workflows/link-check-config.json' |
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,25 @@ | ||
name: Markdown Lint | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "**.md" | ||
- "!.github/**" | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: tj-actions/changed-files@v39 | ||
id: changed-files | ||
with: | ||
files: '**/*.md' | ||
separator: "," | ||
- uses: DavidAnson/markdownlint-cli2-action@v12 | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
with: | ||
globs: ${{ steps.changed-files.outputs.all_changed_files }} | ||
separator: "," |
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,12 @@ | ||
// This file is used by markdownlint-cli2 to configure the linting process | ||
// in conjunction with .markdownlint.jsonc. | ||
{ | ||
"ignores": [ | ||
"docs/node_modules/**", | ||
".github", | ||
"**/CHANGELOG.md", | ||
"vendor/**", | ||
"e2e/vendor/**", | ||
"modules/capability/vendor/**" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
{ | ||
"default": true, | ||
"MD003": { "style": "atx" }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md003---heading-style | ||
"MD004": { "style": "dash" }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md004---unordered-list-style | ||
"MD007": { "indent": 4 }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md007---unordered-list-indentation | ||
"MD009": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md009---trailing-spaces | ||
"MD010": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md010---hard-tabs | ||
"MD013": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013---line-length | ||
"MD024": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md024---multiple-headings-with-the-same-content | ||
"MD025": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md025---multiple-top-level-headings-in-the-same-document | ||
"MD029": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md029---ordered-list-item-prefix | ||
"MD033": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md033---inline-html | ||
"MD036": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md036---emphasis-used-instead-of-a-heading | ||
"MD041": false // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041---first-line-in-a-file-should-be-a-top-level-heading | ||
} | ||
"MD041": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041---first-line-in-a-file-should-be-a-top-level-heading | ||
"MD049": { "style": "asterisk" }, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md049---emphasis-style-should-be-consistent | ||
"MD050": { "style": "asterisk" } // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md050---strong-style-should-be-consistent | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo | |
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
- The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
|
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe | |
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at <[email protected]>. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
|
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
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
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.
just making sure we own this address, right?
also, another bigger topic, but probably there needs to be more explicit steps here. but just flagging it for a larger discussion 🤗