Skip to content

Commit

Permalink
Add documentation Page (#1166)
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
rochacbruno authored Mar 15, 2022
1 parent 49d505e commit bb1ce0f
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 13 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ include requirements/requirements.common.txt
graft galaxy_ng/app/webserver_snippets
graft galaxy_ng/app/static
graft galaxy_ng/locale
exclude mkdocs.yml
exclude docs
exclude docs_requirements.txt
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ docker/loaddata: ## Load initial data from fixtures
api manage loaddata initial_data.json

.PHONY: docker/loadtoken
docker/loadtoken:
docker/loadtoken:
./compose run --rm api manage shell < dev/standalone/create_admin_token.py

.PHONY: docker/load_test_data
docker/load_test_data:
docker/load_test_data:
./compose run --rm api manage shell < dev/ephemeral/create_objects.py

.PHONY: docker/makemigrations
Expand Down Expand Up @@ -199,3 +199,12 @@ dev/bumpversion-build:
# another 'bumpversion release' to from from 5.3.7.b1 -> 5.3.7
dev/bumpversion-release:
bump2version --verbose release

docs/install:
@pip install -r docs_requirements.txt

docs/build:
@mike deploy --push --update-aliases 4.5.0 latest

docs/serve:
@mike serve
11 changes: 0 additions & 11 deletions doc_requirements.txt

This file was deleted.

Empty file added docs/configuration.md
Empty file.
Empty file added docs/content_signing.md
Empty file.
Empty file added docs/development.md
Empty file.
17 changes: 17 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Welcome to MkDocs

For full documentation visit [mkdocs.org](https://www.mkdocs.org).

## Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

## Project layout

mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
5 changes: 5 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags:
- on-premise
- tech preview
---
Empty file added docs/tags.md
Empty file.
4 changes: 4 additions & 0 deletions docs_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdocs
mkdocs-material
mike
mkdocs-git-revision-date-plugin
43 changes: 43 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
site_name: Galaxy NG - Upstream for Ansible Automation Hub
site_url: "https://ansible.github.io/galaxy_ng"
repo_name: ansible/galaxy_ng
repo_url: "https://github.com/ansible/galaxy_ng"
edit_uri: edit/master/docs/
nav:
- Home: index.md
- Install: installation.md
- Configuration: configuration.md
- Content Signing: content_signing.md
- Development: development.md
- Tags: tags.md
theme:
features:
- search.suggest
- search.highlight
- search.share
name: material
palette:
- scheme: default
media: "(prefers-color-scheme: light)"
primary: teal
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
- scheme: slate
media: "(prefers-color-scheme: dark)"
primary: teal
toggle:
icon: material/toggle-switch
name: Switch to light mode
extra:
version:
provider: mike
default: latest

plugins:
- git-revision-date
- tags:
tags_file: tags.md
- search:
lang: en
prebuild_index: true

0 comments on commit bb1ce0f

Please sign in to comment.