Skip to content

Commit bae197a

Browse files
author
Pankaj Agrawal
committed
chore: migrate docs from gatsby to mkdocs
1 parent 15de652 commit bae197a

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

+2322
-3737
lines changed

.github/workflows/build-docs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ 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:
2423
python-version: "3.8"
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: '12'
2527
- name: Capture branch and tag
2628
id: branch_name
2729
run: |
2830
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2931
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
30-
- name: install dependencies
31-
run: make dev-docs
3232
- name: Build docs website
3333
run: make build-docs-website

.github/workflows/docs.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,23 @@ 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:
1817
python-version: "3.8"
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: '12'
1921
- name: Capture branch and tag
2022
id: branch_name
2123
run: |
2224
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2325
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
24-
- name: install dependencies
25-
run: make dev-docs
2626
- name: Build docs website
2727
run: make build-docs-website
28+
- name: Build docs API reference
29+
run: make build-docs-api
2830
- name: Deploy all docs
2931
uses: peaceiris/actions-gh-pages@v3
3032
with:

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

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

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

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

1615
test:
1716
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)