-
Notifications
You must be signed in to change notification settings - Fork 253
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
docs: template for spec and initial files #1856
Conversation
Co-authored-by: Sanaz Taheri <staheri14@users.noreply.github.com>
|
I think we should add the new pages to these pages so that they show up in the PR preview: https://celestiaorg.github.io/celestia-app/pr-preview/pr-1856/
My impression was that the short term approach would be to copy + paste the contents of the x/module/README.md to specs/src/mint/module.md and in x/module/README.md have a link to the corresponding page in the specs. If that's the case, spec owners can do that after this merges. |
Codecov Report
@@ Coverage Diff @@
## main #1856 +/- ##
=======================================
Coverage 21.82% 21.82%
=======================================
Files 116 116
Lines 13247 13247
=======================================
Hits 2891 2891
Misses 10065 10065
Partials 291 291 |
[Suggestion] If we proceed with this approach, then each spec owner would be able (in addition to copying the old content from the x/module/README.md) to organize the content of the respective file based on the specs template. |
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.
LGTM! 🚀
[Optional] We could have a README file specifically for the specs folder. This README can provide high-level information about the structure of the specs folder, including details on how the specs are formatted. It can include a link to the template that the specs should follow, as well as any other relevant information (which can be kept concise for now and expanded upon later through iteration).
this is what was originally suggested iirc, but I believe @MSevey suggested that we have the opposite mapping for now until we have some other setup that pulls the relevant readme's into that package. I'm open to suggestions about structure |
Co-authored-by: Rootul P <rootulp@gmail.com>
my initial naive thought was that we could just update the summary page to link to the actual pkg READMEs https://github.com/celestiaorg/celestia-app/blob/main/specs/src/SUMMARY.md?plain=1 then you the specs folder is really just a shell. a second naive approach was that instead of the spec README having a link to the pkg README, the spec file itself was a symbolic link to the README in the pkgs. Both are totally untested, so feel free to completely ignore me and do what makes the most sense to the team :-) I was mostly just throwing out alternatives to help reduce duplication. |
I like what @MSevey suggested for the following reasons:
|
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.
my initial naive thought was that we could just update the summary page to link to the actual pkg READMEs https://github.com/celestiaorg/celestia-app/blob/main/specs/src/SUMMARY.md?plain=1
I think we should just do this. Having directories with a file that just links to another file seems misleading. In the overview page where you lay out the contents of the spec, I would just do direct links to the readmes in the packages/modules we have. For the stuff that doesn't have a clear directory, like block validity rules, I would add those pages to the spec directory
e20289c
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.
I think we should either:
Option A: keep https://github.com/celestiaorg/celestia-app/blob/main/specs/src/README.md up to date with https://github.com/celestiaorg/celestia-app/blob/main/specs/src/SUMMARY.md
Option B: delete https://github.com/celestiaorg/celestia-app/blob/main/specs/src/README.md
Note we need to keep SUMMARY.md b/c https://rust-lang.github.io/mdBook/guide/creating.html#summarymd
- [paramfilter](../../../x/paramfilter/README.md) | ||
- [upgrade](../../../x/upgrade/README.md) | ||
|
||
## Standard `cosmos-sdk` Modules |
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.
note: added all the sdk modules we're using clsoing #1555
@rootulp sorry, was just in the of refactoring when you reviewed. the readme should be up to date now |
@cmwaters @MSevey |
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.
I do echo Rootul's concern of having a duplicated README.md and a SUMMARY.md but other than that am happy with this initial direction
- [distribution](https://github.com/celestiaorg/cosmos-sdk/blob/v1.14.0-sdk-v0.46.11/x/distribution/spec/README.md) | ||
- [evidence](https://github.com/celestiaorg/cosmos-sdk/blob/v1.14.0-sdk-v0.46.11/x/evidence/spec/README.md) | ||
- [feegrant](https://github.com/celestiaorg/cosmos-sdk/blob/v1.14.0-sdk-v0.46.11/x/feegrant/spec/README.md) | ||
- [genutil](https://github.com/celestiaorg/cosmos-sdk/tree/v1.14.0-sdk-v0.46.11/x/genutil) (no spec) |
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.
Is this really a module?
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.
I was tempted to not include it, but yeah it is and it can result in non-determinism for starting the genesis so I decided to include it.
I agree and we can definitely change this stucture in the future, it doesn't make any sense to have two. I think this is just an
|
Overview
This is just the initial "get the ball rolling" on the specs by adding the template @staheri14 created in #1818 and the initial links to each README in the state machine code as discussed in the internal audit/spec call. This is not intented to be the final structure 🙂
closes #1818, #1555
Checklist