Skip to content

Commit

Permalink
Merge branch 'develop' into 597-montepy-is_atomic_fraction-does-not-w…
Browse files Browse the repository at this point in the history
…ork-as-expected
  • Loading branch information
MicahGale authored Dec 10, 2024
2 parents 3c321db + e6c0e86 commit b051cc0
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 45 deletions.
31 changes: 0 additions & 31 deletions .github/scripts/check_sitemap.py

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ jobs:
run: |
cd doc
make linkcheck
- name: test sitemap
run: python .github/scripts/check_sitemap.py
doc-test:
runs-on: ubuntu-latest
Expand Down
33 changes: 33 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
jobs:
post_checkout:
- git fetch --unshallow || true
- git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' || true
- git fetch --all --tags || true

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: doc/source/conf.py
fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

python:
install:
- method: pip
path: .
extra_requirements:
- doc
1 change: 1 addition & 0 deletions doc/source/_templates/project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ project }}
10 changes: 7 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"sphinx.ext.intersphinx",
"sphinx.ext.extlinks",
"sphinx.ext.doctest",
"sphinx_sitemap",
"sphinx_favicon",
"sphinx_copybutton"
]
Expand All @@ -53,7 +52,6 @@
html_logo = "monty.svg"

html_baseurl = "https://www.montepy.org/"
sitemap_url_scheme = "{link}"
html_extra_path = ["robots.txt", "foo.imcnp"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -89,9 +87,10 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
github_url = "https://github.com/idaholab/MontePy"
html_theme = "pydata_sphinx_theme"
html_theme_options = {
"navbar_start": ["navbar-logo", "version"],
"navbar_start": ["navbar-logo", "project", "version"],
"icon_links": [
{
"name": "GitHub",
Expand All @@ -101,10 +100,15 @@
},
],
}
html_sidebars = {
"**": ["search-field.html", "sidebar-nav-bs.html", "sidebar-ethical-ads.html"]
}
apidoc_module_dir = "../../montepy"
apidoc_module_first = True
apidoc_separate_modules = True

suppress_warnings = ["epub.unknown_project_files"]


# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
5 changes: 5 additions & 0 deletions doc/source/dev_tree.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.. meta::
:description lang=en:
MontePy is the most user-friendly Python library for reading, editing, and writing MCNP input files.
This guide provides many resources for how make contributions to MontePy.

Developer's Resources
=====================

Expand Down
6 changes: 6 additions & 0 deletions doc/source/developing.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.. meta::
:description lang=en:
This guide provides details on how MontePy works,
and guidance on how to make contributions.
MontePy is the most user-friendly Python library for reading, editing, and writing MCNP input files.

Developer's Guide
=================

Expand Down
12 changes: 7 additions & 5 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
.. MontePy documentation master file, created by
sphinx-quickstart on Thu Apr 21 15:29:53 2022.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. meta::
:description lang=en:
MontePy is a Python library for reading, editing, and writing MCNP input files.
MontePy provides an object-oriented interface for MCNP input files.
This allows for easy automation of many different tasks for working with MCNP input files.


MontePy: a Python library for MCNP input files.
===============================================

MontePy is a Python library for reading, editing, and writing MCNP input files.
MontePy is the most user-friendly Python library for reading, editing, and writing MCNP input files.
MontePy provides an object-oriented interface for MCNP input files.
This allows for easy automation of many different tasks for working with MCNP input files.

Expand Down
3 changes: 2 additions & 1 deletion doc/source/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
User-agent: *
Allow: /

Disallow: /en/latest/ # Hidden version

Sitemap: https://www.montepy.org/sitemap.xml
6 changes: 6 additions & 0 deletions doc/source/starting.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.. meta::
:description lang=en:
Montepy is the most user-friendly Python library for reading, editing, and writing MCNP input files.
It can be easily installed using pip.
This tutorial covers the basics of getting started with MontePy.

Getting Started with MontePy
============================

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ doc = [
"sphinx>=7.4.0",
"sphinxcontrib-apidoc",
"pydata_sphinx_theme",
"sphinx-sitemap",
"sphinx-favicon",
"sphinx-copybutton"
"sphinx-copybutton"
]
format = ["black>=23.3.0"]
build = [
Expand All @@ -70,7 +69,7 @@ demo-test = ["montepy[demos]", "papermill"]


[project.urls]
Homepage = "https://idaholab.github.io/MontePy/index.html"
Homepage = "https://www.montepy.org/"
Repository = "https://github.com/idaholab/MontePy.git"
Documentation = "https://www.montepy.org/"
"Bug Tracker" = "https://github.com/idaholab/MontePy/issues"
Expand Down

0 comments on commit b051cc0

Please sign in to comment.