Skip to content

Commit

Permalink
new: moving-pictures redux (usage api) (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
thermokarst authored Nov 20, 2021
1 parent bfa3aa2 commit ea492a0
Show file tree
Hide file tree
Showing 6 changed files with 991 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: checkout source
uses: actions/checkout@v2

- name: set up python 3.6
- name: set up python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.8

- name: install dependencies
run: python -m pip install --upgrade pip
Expand All @@ -34,7 +34,7 @@ jobs:

- name: install QIIME 2 core distro
run: |
envFile=qiime2-latest-py36-linux-conda.yml
envFile=qiime2-latest-py38-linux-conda.yml
wget https://raw.githubusercontent.com/qiime2/environment-files/master/latest/staging/$envFile
conda env create -q -p ./test-env --file $envFile
Expand Down
2 changes: 1 addition & 1 deletion source/_static/clipboard-driver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Grab all elements with highlight-shell class - these will contain all shell commands
var highlightShellElements = document.getElementsByClassName("highlight-shell");
var highlightShellElements = document.querySelectorAll(".highlight-shell, .cli-usage, .artifact-usage");

// Loop through elements with highlight-shell class and add clipboard button to each block
for (x = 0; x < highlightShellElements.length; x++)
Expand Down
4 changes: 4 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
import pathlib

Expand Down Expand Up @@ -68,6 +69,7 @@ def setup(app):
'q2doc.checkpoint',
'q2doc.command_block',
'q2doc.external_links',
'q2doc.usage',
]


Expand Down Expand Up @@ -403,3 +405,5 @@ def setup(app):
# -- Options for mathjax --------------------------------------------------
mathjax_path = ('https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/'
'MathJax.js?config=TeX-AMS-MML_HTMLorMML')

html_baseurl = os.environ.get('BASE_URL', 'https://docs.qiime2.org/2021.11/')
8 changes: 8 additions & 0 deletions source/theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ table.citation td.label {
position: relative;
}

.cli-usage {
position: relative;
}

.artifact-usage {
position: relative;
}

.clipboard-btn {
position: absolute;
top: 0px;
Expand Down
1 change: 1 addition & 0 deletions source/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Tutorials
overview
qiime2-for-experienced-microbiome-researchers
moving-pictures
moving-pictures-usage
fmt
atacama-soils
pd-mice
Expand Down
Loading

0 comments on commit ea492a0

Please sign in to comment.