Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
convert docs actions to use main branch instead of master and convert…
Browse files Browse the repository at this point in the history
… all mentions of master (and links to master) in the docs to main (AMReX-Astro#1082)
  • Loading branch information
harpolea authored Jun 29, 2020
1 parent 593fd55 commit 06ab8e1
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: github pages
on:
push:
branches:
- master
- main
- development

jobs:
Expand Down Expand Up @@ -42,9 +42,9 @@ jobs:
run: python3 -m pip install -r ./requirements.txt

- name: Build docs
if: ${{ endsWith(github.ref, 'master') }}
if: ${{ endsWith(github.ref, 'main') }}
env:
GITHUB_BRANCH: 'master'
GITHUB_BRANCH: 'main'
run: ./deploy_docs_action.sh

- name: Build docs
Expand Down
4 changes: 2 additions & 2 deletions Docs/source/Introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ Development Model
=================

Castro is developed on github (https://github.com/amrex-astro/Castro
). The ``master`` branch is stable and can be used for day-to-day
). The ``main`` branch is stable and can be used for day-to-day
science. New changes are made via pull requests to the
``development`` branch. This is where the ongoing regression testing
is done (both on CPU and GPU).

At the start of each month, we merge ``development`` → ``master`` and
At the start of each month, we merge ``development`` → ``main`` and
apply a tag of the form ``YY.MM`` (e.g. ``20.02`` for Feb. 2020). We
also create a github release and mint a Zenodo DOI using the
information in the ``.zenodo.json`` file at the root level.
Expand Down
6 changes: 3 additions & 3 deletions Docs/source/Preface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ including the CCSE and Stony Brook University.

Castro *core developers* are those who have made substantial
contributions to the code. The process for becoming a core developer
is described in the `README.md <https://github.com/AMReX-Astro/Castro/blob/master/README.md>`_ in the Castro root directory.
is described in the `README.md <https://github.com/AMReX-Astro/Castro/blob/main/README.md>`_ in the Castro root directory.
Current Castro core developers are:

* Ann Almgren
Expand All @@ -79,7 +79,7 @@ page, https://github.com/AMReX-Astro/Castro
External contributions are welcomed. Fork the Castro repo, modify your
local copy, and issue a pull-request to the AMReX-Astro/Castro
project. Further guidelines are given in the `README.md
<https://github.com/AMReX-Astro/Castro/blob/master/README.md>`_ file.
<https://github.com/AMReX-Astro/Castro/blob/main/README.md>`_ file.

To get help, subscribe to the *castro-help* google group mailing list:
https://groups.google.com/forum/#!forum/castro-help
Expand All @@ -90,7 +90,7 @@ Acknowledging and Citing Castro
If you use Castro in your research, we would appreciate it if you
cited the relevant code papers describing its design, features, and
testing. A list of these can be found in the `CITATION
<https://github.com/AMReX-Astro/Castro/blob/master/CITATION>`_ file in
<https://github.com/AMReX-Astro/Castro/blob/main/CITATION>`_ file in
the root ``Castro/`` directory.

The development Castro is supported by the science application
Expand Down
2 changes: 1 addition & 1 deletion Docs/source/_templates/dev_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
{% block sidebartitle %}
{{ super() }}
<div class="branch">
Branch: <a href="{{ pathto('../', 1) }}{{ pagename }}{{file_suffix}}">master</a> | <a href="{{ pathto('', 1) }}{{ pagename }}{{file_suffix}}">development</a>
Branch: <a href="{{ pathto('../', 1) }}{{ pagename }}{{file_suffix}}">main</a> | <a href="{{ pathto('', 1) }}{{ pagename }}{{file_suffix}}">development</a>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion Docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
{% block sidebartitle %}
{{ super() }}
<div class="branch">
Branch: <a href="{{ pathto('', 1) }}{{ pagename }}{{file_suffix}}">master</a> | <a href="{{ pathto('', 1) }}dev/{{ pagename }}{{file_suffix}}">development</a>
Branch: <a href="{{ pathto('', 1) }}{{ pagename }}{{file_suffix}}">main</a> | <a href="{{ pathto('', 1) }}dev/{{ pagename }}{{file_suffix}}">development</a>
</div>
{% endblock %}
10 changes: 5 additions & 5 deletions Docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def get_version():
# see https://github.com/phn/pytpm/issues/3#issuecomment-12133978
numpydoc_show_class_members = False

# The master toctree document.
master_doc = 'index'
# The main toctree document.
main_doc = 'index'

# General information about the project.
project = 'Castro'
Expand Down Expand Up @@ -194,7 +194,7 @@ def get_version():
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'Castro.tex', 'Castro Documentation',
(main_doc, 'Castro.tex', 'Castro Documentation',
'Castro development team', 'manual'),
]

Expand All @@ -204,7 +204,7 @@ def get_version():
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'Castro', 'Castro Documentation',
(main_doc, 'Castro', 'Castro Documentation',
[author], 1)
]

Expand All @@ -215,7 +215,7 @@ def get_version():
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'Castro', 'Castro Documentation',
(main_doc, 'Castro', 'Castro Documentation',
author, 'Castro', 'One line description of project.',
'Miscellaneous'),
]
Expand Down
2 changes: 1 addition & 1 deletion Docs/source/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ offers suggestions for performance improvements.
It can also be run locally. This requires the ``clang-tidy`` and
``bear`` packages, and the python script ``run-clang-tidy.py`` (which
can be downloaded from `here
<https://github.com/AMReX-Astro/cpp-linter-action/blob/master/run-clang-tidy.py>`_). The
<https://github.com/AMReX-Astro/cpp-linter-action/blob/main/run-clang-tidy.py>`_). The
analysis is performed by first compiling a problem using the ``bear``
package, then running the python script to analyze the source
files. From within a problem directory, run
Expand Down
12 changes: 6 additions & 6 deletions Docs/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,19 @@ Microphysics, and wait for AMReX to release a ``20.03`` tag, then do::
Then we can proceed with issuing our own release.


Each month the ``development`` branch is merged into ``master`` and a
Each month the ``development`` branch is merged into ``main`` and a
release is tagged. This needs to be done in coordination with its
submodule dependencies. The general procedure is:

* Do 'git pull' in both master and development branches. (Use `git
* Do 'git pull' in both main and development branches. (Use `git
checkout xxx` to change to branch xxx.

* In master branch, do `git merge development`. Fix any conflicts
* In main branch, do `git merge development`. Fix any conflicts
if there are any. (There should not be any conflicts unless a
commit is checked into master directly without going through
commit is checked into main directly without going through
development.)

* In master branch, commit new release notes (``CHANGES.md``)
* In main branch, commit new release notes (``CHANGES.md``)
summarizing changes since last major release.

* Tag the new release: ``git tag -m "Castro YY.MM" YY.MM``
Expand All @@ -172,7 +172,7 @@ submodule dependencies. The general procedure is:

* ``git checkout development``

* ``git merge master``
* ``git merge main``

* ``git push``

Expand Down
6 changes: 3 additions & 3 deletions Docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ is installed on your machine—we recommend version 1.7.x or higher.

.. note::

By default, you will be on the ``master`` branch of the source.
By default, you will be on the ``main`` branch of the source.
Development on Castro (and its primary dependencies, AMReX and
Microphysics) is done in the ``development`` branch, so you
should work there if you want the latest source::
Expand All @@ -52,7 +52,7 @@ is installed on your machine—we recommend version 1.7.x or higher.
The Castro team runs nightly regression testing on the
``development`` branch, so bugs are usually found and fixed
relatively quickly, but it is generally less stable than staying
on the ``master`` branch.
on the ``main`` branch.

#. We recommend setting the ``CASTRO_HOME`` environment
variable to point to the path name where you have put Castro.
Expand All @@ -65,7 +65,7 @@ is installed on your machine—we recommend version 1.7.x or higher.
git pull --recurse-submodules

The recommended frequency for doing this is monthly, if you are on the
stable ``master`` branch of the code; we issue a new release of the code
stable ``main`` branch of the code; we issue a new release of the code
at the beginning of each month.

#. (optional, for developers) If you prefer, you can maintain AMReX and
Expand Down
2 changes: 1 addition & 1 deletion Docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. pyro documentation master file, created by
.. Castro documentation main file, created by
sphinx-quickstart on Mon Dec 25 18:42:54 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Expand Down
6 changes: 3 additions & 3 deletions deploy_docs_action.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

# Build the documentation from the MASTER_BRANCH or DEV_BRANCH
# Build the documentation from the MAIN_BRANCH or DEV_BRANCH
# and push it to TARGET_BRANCH.
MASTER_BRANCH="master"
MAIN_BRANCH="main"
DEV_BRANCH="development"
TARGET_BRANCH="gh-pages"

Expand All @@ -21,7 +21,7 @@ make html
cd ../

mkdir -p out/docs/
if [ "$GITHUB_BRANCH" = "$MASTER_BRANCH" ]; then
if [ "$GITHUB_BRANCH" = "$MAIN_BRANCH" ]; then
mkdir -p out/docs
mv Docs/build/html/* out/docs
else
Expand Down

0 comments on commit 06ab8e1

Please sign in to comment.