Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pasqal-io/qadence
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmoutinho committed Oct 10, 2023
2 parents 3d8da95 + 5102b48 commit a1f3fb1
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 45 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 interaction defined on _**arbitrary qubit register layo
* `QuantumModel`s to make `QuantumCircuit`s differentiable and runnable on a variety of different
backends like state vector simulators, tensor network emulators and real devices.

Documentation can be found here: [https://pasqal-qadence.readthedocs-hosted.com/en/latest](https://pasqal-qadence.readthedocs-hosted.com/en/latest).
Documentation can be found here: [https://pasqal-io.github.io/qadence/latest/](https://pasqal-io.github.io/qadence/latest/).


## Citation
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 a1f3fb1

Please sign in to comment.