Skip to content

Commit

Permalink
Merge pull request #2 from jjscheel/main
Browse files Browse the repository at this point in the history
Complete foundation
  • Loading branch information
jjscheel authored Jul 5, 2024
2 parents 576f706 + 2c4d8f3 commit d50ed16
Show file tree
Hide file tree
Showing 61 changed files with 64 additions and 23 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: doc-build

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html
force_orphan: true
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ __pycache__/

# Distribution / packaging
.Python
#build/
build/
develop-eggs/
dist/
downloads/
Expand Down Expand Up @@ -88,7 +88,7 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
docs/_build

# PyBuilder
.pybuilder/
Expand Down Expand Up @@ -156,5 +156,4 @@ cython_debug/
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks

# Other items not to include for RISC-V usage
docs/conf.py
docs/json/
docs/
2 changes: 1 addition & 1 deletion docs/Makefile → Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
BUILDDIR = docs

# Put it first so that "make" without argument is like "make help".
help:
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Template for RISC-V Markdown Docs published via the Read the Docs
# RISC-V Ecosystem Lab Partners Documentation Project

This GitHub template is based on the Read the Docs tutorial
here:
The documentation in this repo is based on the [riscv-admin/template-docs-rtd](https://github.com/riscv-admin/template-docs-rtd/)
project. It supports building documents with Sphinx in MD and RST, and then publishing to GitHub pages.

https://docs.readthedocs.io/en/stable/tutorial/
To contribute to this project, join the [RISC-V Ecosystem Lab Partners](https://lists.riscv.org/g/lab-partners)
in the RISC-V Portal.

The base tutorial is modified to remove python source code
and assume the documentation is built in markdown (MD).
The projects currently being developed are:

1. Becoming an Ecosystem Lab Partner
2. Hosting CI for a community

The current published pages can be found at [https://riscv-admin.github.io/labs-doc/](https://riscv-admin.github.io/labs-doc/).

The build process remains as Sphinx and template remains Read the Docs.

Type `make html` in the `build` directory to build the document in `build/html/`.
Type `make html` in the top directory to build the document in `docs/html/`.

For more information on using Markdown, see the
[MyST Project documetation](https://myst-parser.readthedocs.io/en/latest/index.html)
Binary file removed docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions docs/source/index.md

This file was deleted.

File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
3 changes: 3 additions & 0 deletions source/becoming_lab_partner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Becoming an RISC-V Ecosystem Labs Partner

Yada yada...
3 changes: 3 additions & 0 deletions source/ci_hosting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Hosting a Continuous Integration (CI) Project at a Lab

Good details to come...
2 changes: 1 addition & 1 deletion docs/source/conf.py → source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# -- Project information

project = '<RISC-V Docs Template>'
project = 'RISC-V Labs Documentation>'
copyright = '2024, RISC-V International'
author = 'RISC-V International'
release = '0.1'
Expand Down
14 changes: 14 additions & 0 deletions source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

==========================================
RISC-V Labs Best Practices Documentation
==========================================

TBD overview...

Documents

.. toctree::
:maxdepth: 2

becoming_lab_partner
ci_hosting

0 comments on commit d50ed16

Please sign in to comment.