Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2919 from fluxcd/move-to-mkdocs
Browse files Browse the repository at this point in the history
move to mkdocs
  • Loading branch information
Daniel Holbach authored Mar 27, 2020
2 parents 9e787d1 + 242e6ca commit 61be22b
Show file tree
Hide file tree
Showing 28 changed files with 193 additions and 358 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ jobs:
- run: make check-generated
- run: make all
- run: E2E_KIND_CLUSTER_NUM=4 make e2e
- run: make test-docs
- save_cache:
key: cache-{{ checksum "Makefile" }}
paths:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push, pull_request]
name: Check links
jobs:
linkChecker:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build docs for link check
run: mkdocs build
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r -d site/ -v site/index.html
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ test/bin/
test/e2e/bats

# Docs
docs/_build
site/
8 changes: 2 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml
mkdocs:
configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all
Expand Down
14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ IMAGE_TAG:=$(shell ./docker/image-tag)
VCS_REF:=$(shell git rev-parse HEAD)
BUILD_DATE:=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')

DOCS_PORT:=8000

GENERATED_TEMPLATES_FILE=pkg/install/generated_templates.gogen.go

all: $(GOBIN)/fluxctl $(GOBIN)/fluxd build/.flux.done
Expand Down Expand Up @@ -187,12 +185,8 @@ build-fluxctl: release-bins
--build-arg BUILD_DATE="$(BUILD_DATE)" \
-f ./build/docker/fluxctl/Dockerfile ./build/docker/fluxctl

build-docs:
@cd docs && docker build -t flux-docs .

test-docs: build-docs
@docker run -it flux-docs /usr/bin/linkchecker _build/html/index.html
docs-deps:
pip3 install -r docs/requirements.txt

serve-docs: build-docs
@echo Stating docs website on http://localhost:${DOCS_PORT}/_build/html/index.html
@docker run -i -p ${DOCS_PORT}:8000 -e USER_ID=$$UID flux-docs
serve-docs: docs-deps
mkdocs serve
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ could easily integrate.

With the following tutorials:

- [Get started with Flux](https://docs.fluxcd.io/en/latest/tutorials/get-started.html)
- [Get started with Flux using Helm](https://docs.fluxcd.io/en/latest/tutorials/get-started-helm.html)
- [Get started with Flux](https://docs.fluxcd.io/en/latest/tutorials/get-started)
- [Get started with Flux using Helm](https://docs.fluxcd.io/en/latest/tutorials/get-started-helm)

or just [browse through the documentation](https://docs.fluxcd.io).

Expand Down Expand Up @@ -116,7 +116,7 @@ To familiarise yourself with the project and how things work, you might
be interested in the following:

- [Our contributions guidelines](CONTRIBUTING.md)
- [Build documentation](https://docs.fluxcd.io/en/latest/contributing/building.html)
- [Build documentation](https://docs.fluxcd.io/en/latest/contributing/building)
- [Release documentation](/internal_docs/releasing.md)

## <a name="help"></a>Getting Help
Expand Down
4 changes: 2 additions & 2 deletions chart/flux/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Please see the [install instruction](https://github.com/fluxcd/helm-operator/tre
for Helm Operator v1.0.0. To keep using the same SSH key as Flux see the docs
[here](https://github.com/fluxcd/helm-operator/tree/master/chart/helm-operator#use-fluxs-git-deploy-key).
The upgrade procedure for `HelmReleases` from `v1beta1` to `v1` can be found
[here](https://docs.fluxcd.io/projects/helm-operator/en/latest/guides/upgrading-to-ga.html).
[here](https://docs.fluxcd.io/projects/helm-operator/en/latest/how-to/upgrade-to-ga/).

### Improvements

Expand Down Expand Up @@ -65,7 +65,7 @@ Please see the [install instruction](https://github.com/fluxcd/helm-operator/tre
for Helm Operator v1.0.0. To keep using the same SSH key as Flux see the docs
[here](https://github.com/fluxcd/helm-operator/tree/master/chart/helm-operator#use-fluxs-git-deploy-key).
The upgrade procedure for `HelmReleases` from `v1beta1` to `v1` can be found
[here](https://docs.fluxcd.io/projects/helm-operator/en/latest/guides/upgrading-to-ga.html).
[here](https://docs.fluxcd.io/projects/helm-operator/en/latest/how-to/upgrade-to-ga/).

### Improvements

Expand Down
2 changes: 1 addition & 1 deletion chart/flux/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Get the Git deploy key by either (a) running
kubectl -n {{ .Release.Namespace }} logs deployment/{{ .Release.Name }} | grep identity.pub | cut -d '"' -f2

or by (b) installing fluxctl through
https://docs.fluxcd.io/en/latest/references/fluxctl.html#installing-fluxctl
https://docs.fluxcd.io/en/latest/references/fluxctl#installing-fluxctl
and running:

fluxctl identity --k8s-fwd-ns {{ .Release.Namespace }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/flux-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
# file, which you will need to do if you host your own git
# repo rather than using github or the like. You'll also need to
# mount it into the container, below. See
# https://docs.fluxcd.io/en/latest/guides/use-private-git-host.html
# https://docs.fluxcd.io/en/latest/guides/use-private-git-host
# - name: ssh-config
# configMap:
# name: flux-ssh-config
Expand Down
17 changes: 0 additions & 17 deletions docs/Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions docs/Makefile

This file was deleted.

19 changes: 14 additions & 5 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap");

body {
font-family: "Montserrat", sans-serif;
}

.rst-content pre.literal-block, .rst-content div[class^="highlight"] pre, .rst-content .linenodiv pre {
font-family: "Roboto Mono", monospace;
.md-logo {
width: 40px;
height: 40px;
padding-bottom: 2px;
padding-top: 2px;
}
.md-logo img {
width: 40px;
height: 40px;
}

code {
font-family: "Roboto Mono", monospace;
.md-header, .md-footer-nav {
background-image: linear-gradient(45deg, rgb(0, 150, 225) 0%, rgb(27, 141, 226) 24%, rgb(42, 125, 227) 53%, rgb(53, 112, 227) 78%, rgb(53, 112, 227) 100%);
}

.md-header-nav__title {
font-size: .85rem;
}
177 changes: 0 additions & 177 deletions docs/conf.py

This file was deleted.

11 changes: 0 additions & 11 deletions docs/contributing/index.rst

This file was deleted.

Loading

0 comments on commit 61be22b

Please sign in to comment.