Skip to content

Commit ad95587

Browse files
authored
Merge pull request #36 from qir-alliance/feature/fixing-depandabot-issue
Alternative PR
2 parents 424f02d + e7c308e commit ad95587

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4179
-8337
lines changed

.github/workflows/cd-docs.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,27 @@ jobs:
1818
pkg-config \
1919
findutils \
2020
wget \
21-
unzip doxygen
21+
unzip doxygen texlive-font-utils
22+
23+
pip install mkdocs
24+
pip install mkdocs-gitbook
2225
wget https://github.com/matusnovak/doxybook2/releases/download/v1.3.6/doxybook2-linux-amd64-v1.3.6.zip
2326
unzip doxybook2-linux-amd64-v1.3.6.zip
2427

2528
- name: Doxygen generation
2629
run: |
2730
doxygen doxygen.cfg
28-
./bin/doxybook2 --input Doxygen/xml --config docs/.doxybook/config.json --output docs/src/
29-
rm -rf docs/src/Namespaces/namespace_0d*
31+
./bin/doxybook2 --input Doxygen/xml --config docs/.doxybook/config.json --output docs/src/Api
3032
3133
- name: Building docs
3234
run: |
3335
cd docs/
34-
npm install
35-
npm run build
36+
mkdocs build
3637
cd ../
37-
mv docs/src/.vuepress/dist ./build
38+
mv docs/site ./
3839
3940
- name: Deploy 🚀
40-
uses: JamesIves/github-pages-deploy-action@4.1.5
41+
uses: JamesIves/github-pages-deploy-action@4.1.6
4142
with:
4243
branch: gh-pages
43-
folder: build
44+
folder: site

docs/.doxybook/config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"baseUrl": "/",
2+
"baseUrl": "/qat/Api/",
33
"indexInFolders": true,
4-
"linkLowercase": false,
4+
"linkSuffix": "/",
55
"indexClassesName": "index",
66
"indexFilesName": "index",
77
"indexGroupsName": "index",

docs/Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM python:2.7 as builder
2+
3+
COPY ./ /src/
4+
WORKDIR /src/
5+
6+
RUN pip install mkdocs
7+
RUN pip install mkdocs-gitbook
8+
RUN mkdocs build
9+
10+
FROM nginx:latest as documentation
11+
ADD nginx/default.conf /etc/nginx/conf.d/default.conf
12+
13+
COPY --from=builder /src/site /usr/share/nginx/html

docs/mkdocs.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
site_name: QAT Documentation
2+
site_url: https://qir-alliance.github.io/qat/
3+
base_url: /qat/
4+
docs_dir: src
5+
site_description: Everything you need to know about QAT API.
6+
site_author: troels
7+
extra_css:
8+
- css/quantum-colors.css
9+
markdown_extensions:
10+
- admonition
11+
12+
plugins:
13+
- search
14+
15+
theme:
16+
name: null
17+
custom_dir: "tailwind_theme/"
18+
theme_dir: "tailwind_theme/"
19+
static_templates:
20+
- 404.html
21+
22+
include_search_page: false
23+
search_index_only: false
24+
25+
highlightjs: true
26+
hljs_languages:
27+
- bash
28+
- cpp
29+
- python
30+
- llvm
31+
32+
hljs_style: "monokai-sublime"
33+
34+
navigation_depth: 2
35+
nav_style: primary
36+
37+
shortcuts:
38+
help: 191 # ?
39+
next: 78 # n
40+
previous: 80 # p
41+
search: 83 # s
42+
43+
nav:
44+
- User guide:
45+
- Quick start: "UserGuide/QuickStart.md"
46+
- Building the library: "UserGuide/BuildingLibrary.md"
47+
- Introduction to profiles: "UserGuide/IntroductionToProfiles.md"
48+
49+
- Developer guide:
50+
- Architecture Overview: "DeveloperGuide/ArchitectureOverview.md"
51+
- Writing a Component: "DeveloperGuide/WritingComponent.md"
52+
- Configuration Library: "DeveloperGuide/ConfigurationLibrary.md"
53+
- Rule based extensions: "DeveloperGuide/WritingRuleTests.md"
54+
55+
- Api:
56+
- Classes: "Api/Classes/"
57+
- Namespaces: "Api/Namespaces/"
58+
- Modules: "Api/Modules/"
59+
- Files: "Api/Files/"
60+
- Pages: "Api/Pages/"
61+
62+
- Contributing:
63+
- Code quality: "DeveloperGuide/CodeQuality.md"
64+
- Developer FAQ: "DeveloperGuide/DeveloperFAQ.md"

docs/package.json

-19
This file was deleted.

docs/src/.vuepress/components/Foo/Bar.vue

-15
This file was deleted.

docs/src/.vuepress/components/OtherComponent.vue

-3
This file was deleted.

docs/src/.vuepress/components/demo-component.vue

-15
This file was deleted.

docs/src/.vuepress/config.js

-59
This file was deleted.

docs/src/.vuepress/enhanceApp.js

-14
This file was deleted.

docs/src/.vuepress/styles/index.styl

-8
This file was deleted.

docs/src/.vuepress/styles/palette.styl

-10
This file was deleted.

docs/src/Api/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# API Documentation

docs/src/DeveloperGuide/CodeQuality.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ This part defines pipelines for `.hpp` files and `.cpp` files allowing the devel
109109

110110
Each of these CI stages can be executed individually using `./manage` or you can run the entire CI process by invoking `./manage runci`. An example of what this may look like is here:
111111

112-
```zsh
112+
```sh
113113
./manage runci
114114

115115
2021-07-21 14:38:04,896 - FormatChecker - ERROR - /Users/tfr/Documents/Projects/qsharp-compiler/src/QsPasses/src/OpsCounter/OpsCounter.cpp was not correctly formatted.

docs/src/UserGuide/QuickStart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace SimpleLoop {
5555

5656
The tool was ran with three options: `--apply`, `--profile base` and `-S`. First, it tells the tool to apply the profile to the QIR so that it can become a profile-specific QIR according to the profile selected. By specifying the value `baseProfile` to the argument `--profile`, we select which profile to use in the tool and the third argument ensures that LLVM IR will be printed to the terminal in a human readable format. The resulting code emitted (omitting declarations) is:
5757

58-
```ll
58+
```llvm
5959
; ModuleID = 'QSharpVersion/qir/Example.ll'
6060
source_filename = "QSharpVersion/qir/Example.ll"
6161

docs/src/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# QIR profile documentation
1+
# QIR Adaptor Tool
22

3-
Welcome to the QIR Profile SDK, a framework to manipulate QIR into specific profiles. The goal of this framework is to create tools that allow quantum hardware vendors to adapt a generic QIR to their specific hardware profile.
3+
Welcome to the QIR Adapator Tool, a tool to manipulate QIR into specific profiles. The goal of this framework is to create tools that allow quantum hardware vendors to adapt a generic QIR to their specific hardware profile.
44

55
User guide:
66

docs/tailwind_theme/404.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
5+
<div class="row-fluid">
6+
<div id="main-content" class="span12">
7+
<h1 id="404-page-not-found" style="text-align: center">404</h1>
8+
<p style="text-align: center"><strong>Page not found</strong></p>
9+
</div>
10+
</div>
11+
12+
{% endblock %}

docs/tailwind_theme/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)