Skip to content
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

Adding the model component documentation once it becomes available. #15

Merged
merged 6 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -25,9 +27,7 @@ concurrency:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -51,11 +51,12 @@ jobs:

# Deployment job
deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main' # Only run on pushes to main
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
import sys
import importlib.util
from pathlib import Path
from importlib.metadata import version as importlib_version
from importlib.metadata import metadata

import sphinx_rtd_theme # noqa: F401

import firewheel
from firewheel.control.repository_db import RepositoryDb
from firewheel.control.model_component_manager import ModelComponentManager
from firewheel.control.model_component_iterator import ModelComponentIterator
Expand All @@ -33,10 +33,10 @@
author = "Sandia National Laboratories"

# The short X.Y version
version = firewheel.__version__
version = importlib_version("firewheel")

# The full version, including alpha/beta/rc tags
release = firewheel.__version__
release = importlib_version("firewheel")


# -- General configuration ---------------------------------------------------
Expand Down
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,20 @@ commands =
basepython = python3
changedir={toxinidir}/docs
extras = docs
deps =
firewheel-repo-base
firewheel-repo-linux
firewheel-repo-vyos
firewheel-repo-tutorials
firewheel-repo-layer2
firewheel-repo-ntp
firewheel-repo-dns
allowlist_externals=
/usr/bin/make
/bin/mkdir
commands =
make html
/bin/mkdir -p source/model_components
/usr/bin/make html
all: make singlehtml
all: sphinx-build -M man source/cli build -c source
all: make latexpdf
Expand Down
Loading