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

move to mkdocs #2919

Merged
merged 16 commits into from
Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
12 changes: 0 additions & 12 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 @@ -186,13 +184,3 @@ build-fluxctl: release-bins
--build-arg VCS_REF="$(VCS_REF)" \
--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

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
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