Skip to content

Commit 161d2ab

Browse files
chore: migrate docs from gatsby to mkdocs (#308)
1 parent 4717a5f commit 161d2ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2398
-3737
lines changed

.github/workflows/build-docs.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
docs:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
20-
- uses: borales/[email protected]
19+
- uses: actions/checkout@v1
2120
- name: Set up Python
2221
uses: actions/setup-python@v1
2322
with:
@@ -27,7 +26,5 @@ jobs:
2726
run: |
2827
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2928
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
30-
- name: install dependencies
31-
run: make dev-docs
3229
- name: Build docs website
3330
run: make build-docs-website

.github/workflows/docs.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
docs:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: borales/[email protected]
13+
- uses: actions/checkout@v1
1514
- name: Set up Python
1615
uses: actions/setup-python@v1
1716
with:
@@ -21,8 +20,6 @@ jobs:
2120
run: |
2221
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2322
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
24-
- name: install dependencies
25-
run: make dev-docs
2623
- name: Build docs website
2724
run: make build-docs-website
2825
- name: Deploy all docs

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format for changes and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
8+
9+
## [Unreleased]
10+
11+
## [1.3.0] - Coming soon!

Makefile

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
2-
dev-docs:
3-
cd docs && yarn install
4-
51
build-docs:
62
@$(MAKE) build-docs-website
73

8-
build-docs-website: dev-docs
4+
build-docs-website:
95
mkdir -p dist
10-
cd docs && yarn build
11-
cp -R docs/public/* dist/
6+
docker build -t squidfunk/mkdocs-material ./docs/
7+
docker run --rm -t -v ${PWD}:/docs squidfunk/mkdocs-material build
8+
cp -R site/* dist/
129

13-
docs-local:
14-
cd docs && yarn start
10+
docs-local-docker:
11+
docker build -t squidfunk/mkdocs-material ./docs/
12+
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
1513

1614
test:
1715
mvn test

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ See **[example](./example/README.md)** for maven or gradle configurations includ
8282

8383
## Credits
8484

85-
* [Gatsby Apollo Theme for Docs](https://github.com/apollographql/gatsby-theme-apollo/tree/master/packages/gatsby-theme-apollo-docs)
85+
* [MkDocs](https://www.mkdocs.org/)
86+
* [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/)
8687

8788
## License
8889

docs/.prettierignore

-4
This file was deleted.

docs/.prettierrc

-4
This file was deleted.

docs/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM squidfunk/mkdocs-material
2+
RUN pip install mkdocs-git-revision-date-plugin

docs/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[comment]: <> (Includes Changelog content entire file as a snippet)
2+
--8<-- "CHANGELOG.md"

docs/content/core/logging.mdx

-247
This file was deleted.

0 commit comments

Comments
 (0)