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

Docs/v3 #1236

Merged
merged 45 commits into from
Oct 31, 2023
Merged

Docs/v3 #1236

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
08becc7
docs: update description of alignment algorithm
rneher Aug 10, 2023
aa064a5
docs: update translation docs to use CDS instead of gene
rneher Aug 10, 2023
186fb31
docs: small edits to PCR and mutation calling docs
rneher Aug 10, 2023
266f8cd
docs: update tree building docs
rneher Aug 10, 2023
0878350
docs: edits to clade and tree docs
rneher Aug 10, 2023
9abcab2
doc: v3 input files
corneliusroemer Sep 20, 2023
baf465a
docs: split away old changelog file; scaffold new changelog
ivan-aksamentov Oct 5, 2023
d1d0cff
docs: update links in changelog
ivan-aksamentov Oct 9, 2023
589cb3a
docs: update dev guide for v3
ivan-aksamentov Oct 9, 2023
cd9a8c6
docs: add a note about release schedule
ivan-aksamentov Oct 10, 2023
61abb19
Merge remote-tracking branch 'origin/master' into docs/v3
ivan-aksamentov Oct 11, 2023
3fbf071
chore: fix docker docs build
ivan-aksamentov Oct 11, 2023
c038ce9
docs: extend changelog
ivan-aksamentov Oct 12, 2023
c85b2ec
docs(input-files): second pass
corneliusroemer Oct 16, 2023
ccf9a82
doc(output-files): general improvements and v3 adjustments
corneliusroemer Oct 16, 2023
f3314dd
docs(output-files): remove deprecated output files
corneliusroemer Oct 16, 2023
7fb768a
doc: remove nextalign-cli docs for v3
corneliusroemer Oct 17, 2023
e0c09e5
doc(output-files): small edits
corneliusroemer Oct 17, 2023
18d9796
docs(nextclade-cli): update for v3 and add "compile from source"
corneliusroemer Oct 17, 2023
44a39ab
docs(datasets): Update for v3
corneliusroemer Oct 17, 2023
a86d6d3
docs: split away migration docs; document new URL params
ivan-aksamentov Oct 26, 2023
4abf057
docs: split "Input files" section into separate files
ivan-aksamentov Oct 26, 2023
2148fc2
docs: split cli installation and usage docs into separate files
ivan-aksamentov Oct 26, 2023
9b27c3d
feat(cli): automatically generate cli reference docs in markdown format
ivan-aksamentov Oct 26, 2023
e63474d
docs: fix font size in headings containing code
ivan-aksamentov Oct 27, 2023
3cc239c
chore: add script to re-generate cli docs
ivan-aksamentov Oct 27, 2023
392f3a4
chore(ci): add ci check for generated cli docs
ivan-aksamentov Oct 27, 2023
b6aa2f3
Merge pull request #1295 from nextstrain/docs/v3-cli-reference
ivan-aksamentov Oct 27, 2023
4349198
docs: split output files docs into multiple sections
ivan-aksamentov Oct 27, 2023
653cf5d
docs: edit output files section
ivan-aksamentov Oct 27, 2023
2abf2a8
docs: edit of datasets.md
rneher Oct 30, 2023
89b1e01
docs: edit migration guide
rneher Oct 30, 2023
eb489eb
docs: edit of ref seq and annotation input files
rneher Oct 30, 2023
5f65b0c
docs: typo
rneher Oct 30, 2023
2b1d7a6
docs: align changelog and migration guide
ivan-aksamentov Oct 30, 2023
41c1a2c
chore(ci): show diff when checking cli docs
ivan-aksamentov Oct 30, 2023
16f715c
Merge remote-tracking branch 'origin/master' into docs/v3
ivan-aksamentov Oct 30, 2023
34897af
chore(ci): colorize output of git diff
ivan-aksamentov Oct 30, 2023
25fcc1f
docs: update cli ref docs
ivan-aksamentov Oct 30, 2023
ff59e36
feat(cli): mark removed arg as removed
ivan-aksamentov Oct 30, 2023
7792aca
docs: remove removed and renamed args from cli reference
ivan-aksamentov Oct 30, 2023
98013d4
docs: remove runtime-defined default values from cli reference
ivan-aksamentov Oct 30, 2023
389cfcf
feat(docs): move cli help preprocessing to rust
ivan-aksamentov Oct 31, 2023
e0398c6
docs(CHANGELOG): don't treat ambiguous nucs as reversions
ivan-aksamentov Oct 31, 2023
b0cf80b
docs: reword changelog entry for ambiguous reversions
ivan-aksamentov Oct 31, 2023
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
31 changes: 29 additions & 2 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,36 @@ jobs:
./tests/test-linux-distros ./.out/nextclade-x86_64-unknown-linux-gnu
check-cli-docs:
name: "Check that autogenerated CLI documentation is up-to-date"
needs: [ build-cli ]
runs-on: ubuntu-22.04

steps:
- name: "Checkout code"
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true

- name: "Download build artifacts"
uses: actions/download-artifact@v3
with:
name: "out"
path: ".out"

- name: "Re-generate CLI docs"
run: |
chmod +x ./.out/nextclade-x86_64-unknown-linux-gnu
./scripts/update_cli_reference_docs ./.out/nextclade-x86_64-unknown-linux-gnu
- name: "Check that the git diff is clean"
run: |
git -c color.ui=always diff --exit-code 'docs/user/nextclade-cli/reference.md' || (echo "Autogenerated CLI documentation is not up-to-date, please run './scripts/update_cli_reference_docs <path_to_nextclade>', then verify and commit the changes." >&2; exit 1)
publish-to-github-releases:
name: "Publish to GitHub Releases"
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test ]
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
if: endsWith(github.ref, '/release-cli')
runs-on: ubuntu-22.04

Expand Down Expand Up @@ -337,7 +364,7 @@ jobs:
publish-to-docker-hub:
name: "Publish to Docker Hub"
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test ]
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
if: endsWith(github.ref, '/release-cli')
runs-on: ubuntu-22.04

Expand Down
2,735 changes: 133 additions & 2,602 deletions CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ docker-docs:
--name=nextclade-docs-builder-$(shell date +%s) \
--init \
--user=$(shell id -u):$(shell id -g) \
--volume=$(shell pwd):/home/user/src \
--volume=$(shell pwd):/workdir \
--publish=8000:8000 \
--workdir=/home/user/src \
--env 'TERM=xterm-256colors' \
nextclade-docs-builder


Expand Down
43 changes: 24 additions & 19 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM continuumio/miniconda3:4.9.2
FROM continuumio/miniconda3

SHELL ["bash", "--login", "-euxo", "pipefail", "-c"]

ARG DEBIAN_FRONTEND=noninteractive
ARG USER=user
Expand All @@ -9,8 +11,20 @@ ARG GID
ENV TERM="xterm-256color"
ENV HOME="/home/user"


RUN set -euxo pipefail >/dev/null \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qq --yes \
&& apt-get install -qq --no-install-recommends --yes \
make \
sudo \
>/dev/null \
&& apt-get clean autoclean >/dev/null \
&& apt-get autoremove --yes >/dev/null \
&& rm -rf /var/lib/apt/lists/*

# Make a user and group
RUN set -x >/dev/null \
RUN set -euxo pipefail >/dev/null \
&& \
if [ -z "$(getent group ${GID})" ]; then \
addgroup --system --gid ${GID} ${GROUP}; \
Expand All @@ -34,27 +48,18 @@ RUN set -x >/dev/null \
&& echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
&& touch ${HOME}/.hushlogin \
&& chown -R ${UID}:${GID} "${HOME}"

RUN set -x \
&& chown -R ${USER}:${GROUP} ${HOME}
&& chown -R ${UID}:${GID} "${HOME}" \
&& chown -R ${USER}:${GROUP} ${HOME}

COPY environment.yml ${HOME}/src/
WORKDIR /workdir

WORKDIR ${HOME}/src
COPY environment.yml /workdir

RUN set -x \
&& conda env create docs.clades.nextstrain.org
RUN set -euxo pipefail >/dev/null \
&& conda env create -n "docs.clades.nextstrain.org"

USER ${USER}

RUN set -x \
&& conda init bash \
&& echo "conda activate docs.clades.nextstrain.org" >> ${HOME}/.bashrc
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "docs.clades.nextstrain.org", "bash", "-euo", "pipefail", "-c"]

CMD bash -c "set -x \
&& source ${HOME}/.bashrc \
&& cd ${HOME}/src/docs \
&& rm -rf build \
&& make autobuild \
"
CMD ["cd docs && make autobuild"]
4 changes: 4 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ details pre * {
white-space: pre-wrap;
word-wrap: break-word;
}

.rst-content code {
font-size: 0.8em !important;
}
2,449 changes: 2,449 additions & 0 deletions docs/changes/CHANGELOG.old.md

Large diffs are not rendered by default.

Loading