This repository was archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Autogen docs for the "Configuring Parity Ethereum" wiki page. #10067
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4da8b29
publish docs changes for autogen config docs
343fe59
Update publish-docs.sh
jam10o-new aba0a49
Update publish-docs.sh
jam10o-new 169c30a
fix env variable
jam10o-new 6c7d0c6
use yarn
jam10o-new 4bf9351
test pipeline, revert me
TriplEight 45962a5
fix test pipeline, revert me
TriplEight 86eaccd
change runner tag
TriplEight c7b6c06
change runner tag 2
TriplEight f46fa37
change runner tag
TriplEight 88ca373
global git config
jam10o-new b81ddde
supress upload_files output
TriplEight bac28ba
Update .gitlab-ci.yml
TriplEight 2b243d8
Replace tag if exists
jam10o-new 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ clone_repos() { | |
| echo "__________Clone repos__________" | ||
| git clone https://github.com/parity-js/jsonrpc.git jsonrpc | ||
| git clone https://github.com/paritytech/wiki.git wiki | ||
| git clone https://github.com/paritytech/parity-config-generator | ||
| } | ||
|
|
||
| build_docs() { | ||
|
|
@@ -15,18 +16,25 @@ build_docs() { | |
| npm run build:markdown | ||
| } | ||
|
|
||
| build_config() { | ||
| echo "_______Build config docs______" | ||
| yarn install | ||
| AUTOGENSCRIPT=1 yarn generate-docs | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to make it easier to debug, each commit to this branch goes compiling, and you can check the result here: https://gitlab.parity.io/parity/parity-ethereum/pipelines
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also,
|
||
| } | ||
|
|
||
| update_wiki_docs() { | ||
| echo "__________Update WIKI docs__________" | ||
| for file in $(ls jsonrpc/docs); do | ||
| module_name=${file:0:-3} | ||
| mv jsonrpc/docs/$file wiki/JSONRPC-$module_name-module.md | ||
| done | ||
| mv parity-config-generator/docs/config.md wiki/Configuring-Parity-Ethereum.md | ||
| } | ||
|
|
||
| setup_git() { | ||
| echo "__________Set github__________" | ||
| git config user.email "devops@parity.com" | ||
| git config user.name "Devops Parity" | ||
| git config --global user.email "devops@parity.com" | ||
| git config --global user.name "Devops Parity" | ||
| } | ||
|
|
||
| set_remote_wiki() { | ||
|
|
@@ -38,13 +46,13 @@ commit_files() { | |
| git checkout -b rpcdoc-update-${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}} | ||
| git add . | ||
| git commit -m "Update docs to ${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" | ||
| git tag -a "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" -m "Update RPC docs to ${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" | ||
| git tag -a -f "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" -m "Update RPC and config docs to ${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" | ||
| } | ||
|
|
||
| upload_files() { | ||
| echo "__________Upload files__________" | ||
| git push origin HEAD | ||
| git push --tags | ||
| git push -q origin HEAD | ||
| git push -q -f --tags | ||
| } | ||
|
|
||
| RPC_TRAITS_DIR="rpc/src/v1/traits" | ||
|
|
@@ -56,6 +64,9 @@ cp $RPC_TRAITS_DIR/*.rs "jsonrpc/.parity/$RPC_TRAITS_DIR" | |
| cd jsonrpc | ||
| build_docs | ||
| cd .. | ||
| cd parity-config-generator | ||
| build_config | ||
| cd .. | ||
| update_wiki_docs | ||
| cd wiki | ||
| set_remote_wiki | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.