-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[POC] Developer Documentation Revamp using mkdocs #14179
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7106cf7
Move some things around for organization - not fully happy with this …
relrod b9220eb
add tags and a few minor tweaks/moves
relrod 2b3129f
theme tweaks and some adjustments
relrod 46794cc
Add a custom linter for CI
relrod ba008b0
A few more tweaks
relrod a2becae
GHA, and fix images
relrod d2db498
Add mermaid, and sate a linter
relrod 8baa964
gitignore /site/
relrod 6013553
use FullLoader in the right place
relrod c4f4dda
fix?
relrod File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Development Docs | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
mkdocs: | ||
runs-on: ubuntu-latest | ||
name: mkdocs | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pip install -r requirements/requirements_devdocs.txt | ||
|
||
|
||
- name: Lint the files | ||
run: | | ||
cd docs | ||
errors=0 | ||
for file in `find -type f -name '*.md'`; do | ||
./lint_awx_doc.py $file || errors=$((errors+1)) | ||
done | ||
if [[ $errors -ne 0 ]]; then | ||
echo "Encountered $errors errors" | ||
exit 1 | ||
fi | ||
|
||
- name: Build the site | ||
run: | | ||
mkdocs build --clean | ||
|
||
# TODO: Deploy the site somewhere (gh pages?) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,3 +165,6 @@ use_dev_supervisor.txt | |
|
||
awx/ui_next/src | ||
awx/ui_next/build | ||
|
||
# Docs build | ||
/site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Index | ||
--- | ||
|
||
For convenience, the AWX developer documentation is categorized into tags. | ||
You can find a list of tags and documents associated with them, here. | ||
|
||
[TAGS] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
docs/execution_environments.md → docs/architecture/execution_environments.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
tags: | ||
- credentials | ||
--- | ||
Credential Plugins | ||
================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
tags: | ||
- credentials | ||
--- | ||
Custom Credential Types Overview | ||
================================ | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading up on the limitations of this... github pages seem to want an
index.html
at the root level. Since this would be an artifact of the build process, we probably don't want to keep that in source ourselves. Then the URL would be somewhat limited, as we could have maybehttp://ansible.github.io/awx
, which would maybe be okay, maybe not.Given what other projects are doing...
I would just assume we go with readthedocs.io