-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
More version configs for docs #10597
Conversation
recommended to install the version of go that our continuous integration is | ||
running. At the time of writing this is Go version 1.12; however, this can be | ||
checked by looking at the | ||
[master `.drone.yml`](https://github.com/go-gitea/gitea/blob/master/.drone.yml) | ||
(At the time of writing | ||
[line 67](https://github.com/go-gitea/gitea/blob/8917d66571a95f3da232a0c27bc1300210d10fde/.drone.yml#L67) | ||
is the relevant line - but this may change.) | ||
recommended to install the version of Go that our continuous integration is | ||
running. As of last update, it should be Go version {{< go-version >}}. |
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.
Feel free to have me re-write this. I found it to be slightly confusing, though, as it said 1.12
then perma-links to a line saying 1.11
, and the line for master is already off because of drone changes.
Codecov Report
@@ Coverage Diff @@
## master #10597 +/- ##
==========================================
+ Coverage 43.7% 43.71% +<.01%
==========================================
Files 585 585
Lines 82031 82031
==========================================
+ Hits 35852 35857 +5
+ Misses 41737 41733 -4
+ Partials 4442 4441 -1
Continue to review full report at Codecov.
|
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.
👍
Ping LG-TM |
Same could be done for Node.js version as well. |
This PR may need an update depending on whether it gets merged before or after #10467
While they aren't used too often in the docs, it would be better to abstract them sooner than later imo
It adds two more config variables and subsequent shortcodes to the docs,
minGoVersion
andgoVersion
.Perhaps
currGoVersion
orcurrentGoVersion
makes more sense for the latter?As well, some spots had a full semver like
1.11.0
while others simply had1.11
. I opted for the latter as that's easier to maintain (rather than updating the docs for every go version) and probably enough information.On a semi-related note, it may not be a bad idea to refer people to the docs from places like the README, so there are fewer places to remember to swap out versions.