-
Notifications
You must be signed in to change notification settings - Fork 101
Add versioning to docs #129
Comments
Absence of multi version support is quite disappointing with vuepress. This problem occurred to me before and I searched for vuepress versioning and could not find such thing back then. I was thinking to offer migration to another docs platform in the future when wasmd is branching. @ethanfrey thanks for finding this repo. No need for migration now 💯 |
Checked titanium versioning plugin, this is from their website: I looked at https://github.com/cosmos/vuepress-theme-cosmos and it does not support versioning. Maybe we can the maintainers to support versioning? Should not be a lot of work for them and beneficial to cosmos-sdk docs. @ethanfrey ideas? |
Sounds good. I will pass this along |
@lovincyrus Can you provide some guidance on how you achieved versioning on the Cosmos SDK docs with our docs package? 🙏 |
Oh I cosmos-sdk had versioning support for some time awesome. @lovincyrus great if you could detail how to use it in https://github.com/cosmos/vuepress-theme-cosmos/blob/develop/readme.md |
Versioning and version switcher has been implemented on cosmos sdk docs and tendermint docs. —
The current versioning method was built to specifically handle the use cases of the official docs, such as http://docs.cosmos.network/master, https://docs.cosmos.network/v0.39/intro/overview.html. Ref: https://github.com/cosmos/vuepress-theme-cosmos/blob/develop/global-components/TmSelectVersion.vue#L25 The official docs are what we maintain, docs with path prefixes, and deployed using S3. Current approach: Makefile and versions file to generate version prefixes to the docs url: ( To implement versioning for Cosmwasm, there are some prerequisites:
Steps to implement versioning w/ Makefile + S3 Deployment
https://github.com/cosmos/cosmos-sdk/blob/master/Makefile#L195 to build versioned docs and docs with path prefixes in the deployment. Lmk if anything is unclear. @orkunkl |
The current docs work well for 0.11 version of wasmd/cosmwasm (last stable launchpad version... running on heldernet). Actually, some of the commands are only for 0.10, like coralnet.
However, they are not working for the current master (0.13, soon 0.14) running on stargate that introduced a lot of changes to wasmd. The only solution I see to support both current testnets is to add some doc versioning, a drop-down where people can select to view the older launchpad version, or the current master (and we can maintain a few older checkpoints for heavily used older versions).
Unfortunately, this is not currently supported by vuepress :( vuejs/vuepress#1018
However, there is a plugin that does attempt to handle this, by copying the docs to a folder (we can put all current docs in 0.11/launchpad for example, then open a new one for 0.14/stargate): https://titanium-docs-devkit.netlify.app/guide/versioning.html
This is an example of a repo doing a similar strategy "by hand": https://github.com/nuwave/lighthouse/tree/master/docs
It would be great to set this up before resolving the numerous issues to update the docs to stargate. As many people are still using the launchpad version (as this has much more mature tooling for the sdk and client)
The text was updated successfully, but these errors were encountered: