Skip to content

Commit

Permalink
Merge branch 'main' into rg/fix-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Oct 10, 2023
2 parents 3395800 + a1f3fb1 commit 67d3288
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 46 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build documentation

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}

concurrency:
group: docs-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test_qadence_ubuntu:
name: Test Qadence docs (ubuntu)
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v4

- name: Install JetBrains Mono font
run: |
sudo apt install -y wget unzip fontconfig
wget https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip
unzip JetBrainsMono-2.304.zip -d JetBrainsMono
mkdir -p /usr/share/fonts/truetype/jetbrains
cp JetBrainsMono/fonts/ttf/*.ttf /usr/share/fonts/truetype/jetbrains/
fc-cache -f -v
- name: Install graphviz
run: sudo apt-get install -y graphviz

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Hatch
run: |
pip install hatch
- name: Build docs
if: ${{ !startsWith(github.ref, 'ref/tags/v') }}
run: |
hatch -v run docs:build
- name: Deploy docs
if: startsWith(github.ref, 'ref/tags/v')
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
git config user.name "GitHub Actions"
git config user.email "[email protected]"
mike deploy --push --update-aliases $VERSION latest
31 changes: 0 additions & 31 deletions .github/workflows/test_docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ programs**_ with tunable qubit interaction defined on _**arbitrary register topo

## Documentation

Lastest documentation can be found [here](https://pasqal-io.github.io/qadence/latest)
Lastest documentation can be found [here](https://pasqal-io.github.io/qadence/latest).

## Installation guide

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ programs**_ with tunable qubit interaction defined on _**arbitrary register topo

* An intuitive [expression-based system](tutorials/parameters.md) developed on top of the symbolic library [Sympy](https://www.sympy.org/en/index.html) to construct _**parametric quantum programs**_ easily.

* [High-order generalized parameter shift rules](link to psr tutorial) for _**differentiating parametrized quantum operations**_.
* [High-order generalized parameter shift rules](advanced_tutorials/differentiability.md) for _**differentiating parametrized quantum operations**_.

* Out-of-the-box _**automatic differentiability**_ of quantum programs with [PyTorch](https://pytorch.org/) integration.

Expand Down
7 changes: 6 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
site_name: Qadence
repo_url: "https://gitlab.pasqal.com/pqs/qadence"
repo_url: "https://github.com/pasqal-io/qadence/"
site_url: "https://pasqal-io.github.io/qadence/"
repo_name: "qadence"

nav:
Expand Down Expand Up @@ -132,6 +133,10 @@ plugins:

- markdown-exec

extra:
version:
provider: mike

# To get nice tabs
extra_css:
- css/mkdocstrings.css
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ dependencies = [
"mkdocs-section-index==0.3.6",
"mkdocs-exclude",
"markdown-exec",
"mike",
]
features = ["pulser", "braket", "visualization"]

Expand Down
12 changes: 0 additions & 12 deletions readthedocs.yml

This file was deleted.

0 comments on commit 67d3288

Please sign in to comment.