Skip to content
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

Merged
merged 5 commits into from
Mar 5, 2020
Merged

Conversation

jolheiser
Copy link
Member

@jolheiser jolheiser commented Mar 4, 2020

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 and goVersion.
Perhaps currGoVersion or currentGoVersion makes more sense for the latter?

As well, some spots had a full semver like 1.11.0 while others simply had 1.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.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
@jolheiser jolheiser added type/docs This PR mainly updates/creates documentation skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Mar 4, 2020
Comment on lines -43 to +44
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 >}}.
Copy link
Member Author

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.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 4, 2020
@codecov-io
Copy link

codecov-io commented Mar 4, 2020

Codecov Report

Merging #10597 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
modules/indexer/stats/queue.go 62.5% <0%> (-18.75%) ⬇️
modules/indexer/stats/db.go 40.62% <0%> (-9.38%) ⬇️
modules/git/utils.go 65.67% <0%> (-4.48%) ⬇️
models/unit.go 37.03% <0%> (-2.47%) ⬇️
modules/git/repo.go 46.78% <0%> (-0.92%) ⬇️
services/pull/pull.go 35% <0%> (+0.29%) ⬆️
models/notification.go 64.71% <0%> (+0.83%) ⬆️
modules/log/event.go 65.64% <0%> (+1.02%) ⬆️
modules/indexer/issues/indexer.go 57.52% <0%> (+1.32%) ⬆️
modules/git/command.go 89.56% <0%> (+2.6%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afa1e1a...062f145. Read the comment docs.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 4, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 4, 2020
Copy link
Member

@guillep2k guillep2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@guillep2k
Copy link
Member

Ping LG-TM

@guillep2k guillep2k merged commit be544e8 into go-gitea:master Mar 5, 2020
@6543 6543 mentioned this pull request Mar 5, 2020
@silverwind
Copy link
Member

Same could be done for Node.js version as well.

@jolheiser jolheiser deleted the go-version-docs branch March 5, 2020 17:15
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants