-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
link to DOCS_README #2341
Merged
Merged
link to DOCS_README #2341
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 |
---|---|---|
@@ -1,16 +1,69 @@ | ||
# Documentation Maintenance Overview | ||
# Docs Build Workflow | ||
|
||
The documentation found in this directory is hosted at: | ||
The documentation for the Cosmos SDK is hosted at: | ||
|
||
- https://cosmos.network/docs/ | ||
- https://cosmos.network/docs/ and | ||
- https://cosmos-staging.interblock.io/docs/ | ||
|
||
and built using [VuePress](https://vuepress.vuejs.org/) from the Cosmos website repo: | ||
built from the files in this (`/docs`) directory for | ||
[master](https://github.com/cosmos/cosmos-sdk/tree/master/docs) | ||
and [develop](https://github.com/cosmos/cosmos-sdk/tree/develop/docs), | ||
respectively. | ||
|
||
- https://github.com/cosmos/cosmos.network | ||
## How It Works | ||
|
||
Under the hood, Jenkins listens for changes (on develop or master) in ./docs then rebuilds | ||
either the staging or production site depending on which branch the changes were made. | ||
There is a Jenkins job listening for changes in the `/docs` directory, on both | ||
the `master` and `develop` branches. Any updates to files in this directory | ||
on those branches will automatically trigger a website deployment. Under the hood, | ||
a private website repository has make targets consumed by a standard Jenkins task. | ||
|
||
To update the Table of Contents (layout of the documentation sidebar), edit the | ||
`config.js` in this directory, while the `README.md` is the landing page for the | ||
website documentation. | ||
## README | ||
|
||
The [README.md](./README.md) is also the landing page for the documentation | ||
on the website. | ||
|
||
## Config.js | ||
|
||
The [config.js](./config.js) generates the sidebar and Table of Contents | ||
on the website docs. Note the use of relative links and the omission of | ||
file extensions. Additional features are available to improve the look | ||
of the sidebar. | ||
|
||
## Links | ||
|
||
**NOTE:** Strongly consider the existing links - both within this directory | ||
and to the website docs - when moving or deleting files. | ||
|
||
Relative links should be used nearly everywhere, having discovered and weighed the following: | ||
|
||
### Relative | ||
|
||
Where is the other file, relative to the current one? | ||
|
||
- works both on GitHub and for the VuePress build | ||
- confusing / annoying to have things like: `../../../../myfile.md` | ||
- requires more updates when files are re-shuffled | ||
|
||
### Absolute | ||
|
||
Where is the other file, given the root of the repo? | ||
|
||
- works on GitHub, doesn't work for the VuePress build | ||
- this is much nicer: `/docs/hereitis/myfile.md` | ||
- if you move that file around, the links inside it are preserved (but not to it, of course) | ||
|
||
### Full | ||
|
||
The full GitHub URL to a file or directory. Used occasionally when it makes sense | ||
to send users to the GitHub. | ||
|
||
## Building Locally | ||
|
||
Not currently possible but coming soon! Doing so requires | ||
assets held in the (private) website repo, installing | ||
[VuePress](https://vuepress.vuejs.org/), and modifying the `config.js`. | ||
|
||
## Consistency | ||
|
||
Because the build processes are identical (as is the information contained herein), this file should be kept in sync as | ||
much as possible with its [counterpart in the Tendermint Core repo](https://github.com/tendermint/tendermint/blob/develop/docs/DOCS_README.md). |
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
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.
Do we want to make this one file in https://github.com/tendermint/coding to avoid getting out of sync?
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.
mhm not really. they have sight differences (links) and it's nice to have it in each repo
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.
👍