diff --git a/.github/ISSUE_TEMPLATE/doc-change.md b/.github/ISSUE_TEMPLATE/doc-change.md new file mode 100644 index 000000000..35a7a09d6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/doc-change.md @@ -0,0 +1,17 @@ +--- +name: Documentation update issue +about: Opening a new issue to update the documentation after a PR submission in other projects +title: '' +labels: 'doc-change' +assignees: '' + +--- + +Opening a new issue to document a new feature/change. + +The reference PR is in the title, kindly make sure that the PR is +approved and merged first. + +If the feature/change is not yet merged to latest stable, leave the PR in the RFM state and merge/publish only when we have a new release of the related product. +Ping the PR owner if you have further questions about the documentation change. + diff --git a/.gitignore b/.gitignore index 9f1bd19ee..f3f362bbf 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ main.min.css main.css objects.inv output.log -.DS_Store \ No newline at end of file +.DS_Store +source/conf.py diff --git a/Makefile b/Makefile index fb3d1c5c2..10a202731 100644 --- a/Makefile +++ b/Makefile @@ -29,13 +29,13 @@ clean: sync-minio-version: @echo "Retrieving current MinIO version" $(shell wget -O /tmp/downloads-minio.json https://min.io/assets/downloads-minio.json) - $(eval DEB = $(shell cat /tmp/downloads-minio.json | jq '.Linux."MinIO Server".amd64.DEB.download')) - $(eval RPM = $(shell cat /tmp/downloads-minio.json | jq '.Linux."MinIO Server".amd64.RPM.download')) + $(eval DEB = $(shell cat /tmp/downloads-minio.json | jq '.Linux."MinIO Server".amd64.DEB.download' | sed "s|linux-amd64|linux-amd64/archive|g")) + $(eval RPM = $(shell cat /tmp/downloads-minio.json | jq '.Linux."MinIO Server".amd64.RPM.download' | sed "s|linux-amd64|linux-amd64/archive|g")) $(eval MINIO = $(shell curl --retry 10 -Ls -o /dev/null -w "%{url_effective}" https://github.com/minio/minio/releases/latest | sed "s/https:\/\/github.com\/minio\/minio\/releases\/tag\///")) @cp source/default-conf.py source/conf.py - @kname=$(uname -s) + @$(eval kname = $(shell uname -s)) @case "${kname}" in \ Darwin) \ sed -i "" "s|MINIOLATEST|${MINIO}|g" source/conf.py; \ @@ -49,13 +49,6 @@ sync-minio-version: ;; \ esac - @if [ "$(shell git diff --name-only | grep 'conf.py')" == "" ]; then \ - echo "MinIO Server Version already latest"; \ - else \ - echo "New MinIO Server Version available" ; \ - git add source/conf.py && git commit -m "Updating MinIO server to ${MINIO}"; \ - fi - sync-java-docs: @echo "Retrieving Java docs from github.com/minio/minio-java" @$(eval LATEST = $(shell wget -q https://api.github.com/repos/minio/minio-java/releases/latest -O - | jq -r '.tag_name')) @@ -89,12 +82,15 @@ sync-deps: @make sync-dotnet-docs stage: - @make clean && make html + @make clean + @make sync-minio-version + @make html python -m http.server --directory $(BUILDDIR)/$(GITDIR)/html publish: @make clean - make html + @make sync-minio-version + @make html # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). diff --git a/README.md b/README.md index 397905cec..ba4a69cf7 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ static HTML pages using ReSTructured Text (rST). ### Linux -1. Run `git checkout https://github.com/minio/docs` and `cd docs` to move into +1. Run `git clone https://github.com/minio/docs` and `cd docs` to move into the working directory. 2. Create a new virtual environment `python3 -m venv venv`. Activate it using @@ -37,7 +37,7 @@ static HTML pages using ReSTructured Text (rST). ### MacOS -1. Run `git checkout https://github.com/minio/docs` and `cd docs` to move into +1. Run `git clone https://github.com/minio/docs` and `cd docs` to move into the working directory. 2. Create a new virtual environment `python3 -m venv venv`. Activate it using @@ -59,7 +59,7 @@ Prereq: - Checkout the MinIO docs repository using your preferred `git` method - `git checkout https://github.com/minio/docs` + `git clone https://github.com/minio/docs` All instructions use PowerShell running as an administrator. @@ -93,4 +93,4 @@ All instructions use PowerShell running as an administrator. This project is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/legalcode). -See [CONTRIBUTIONS](https://github.com/minio/docs/tree/master/CONTRIBUTING.md) for more information on contributing content to the MinIO Documentation project. \ No newline at end of file +See [CONTRIBUTIONS](https://github.com/minio/docs/tree/master/CONTRIBUTING.md) for more information on contributing content to the MinIO Documentation project. diff --git a/source/_static/scss/includes/_header.scss b/source/_static/scss/includes/_header.scss index d74548dac..acf31c358 100644 --- a/source/_static/scss/includes/_header.scss +++ b/source/_static/scss/includes/_header.scss @@ -142,7 +142,7 @@ border-width: 0 6px 4px; border-color: transparent transparent #fff; position: absolute; - bottom: -2px; + bottom: 0; transition: opacity 200ms; z-index: 2; } @@ -245,7 +245,7 @@ transform: translateX(calc(-50% + 3rem)); position: absolute; left: 0; - top: 2.65rem; + top: 100%; opacity: 0; transition: opacity 200ms; pointer-events: none; diff --git a/source/_templates/layout.html b/source/_templates/layout.html index a20cc7c57..56d715017 100644 --- a/source/_templates/layout.html +++ b/source/_templates/layout.html @@ -117,10 +117,15 @@