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

V1.11 rc #27

Merged
merged 45 commits into from
Mar 2, 2024
Merged
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
aa682ba
Add example of simulator control contents for sv
mkosunen Oct 31, 2023
cbc6818
Add documentation build CI routine
mkosunen Jan 22, 2024
1e0f3f5
Update CI build routine
mkosunen Jan 22, 2024
58f3aaf
Trial
mkosunen Jan 22, 2024
972233a
Trial2
mkosunen Jan 22, 2024
8331624
Use directory instead of link for docs
mkosunen Jan 22, 2024
c7be6c6
Update
mkosunen Jan 22, 2024
46e2fb7
Cleanup docs
mkosunen Jan 22, 2024
c5a0894
Re-add .nojekyll
mkosunen Jan 22, 2024
5a1a091
Update docs
mkosunen Jan 22, 2024
021d03d
Update
mkosunen Jan 22, 2024
c45a5d6
Fixup
mkosunen Jan 22, 2024
186f057
Fixup
mkosunen Jan 22, 2024
a4064b3
Fixup
mkosunen Jan 22, 2024
a3f3881
Fixup
mkosunen Jan 22, 2024
a1b8c4b
Continuous Integration documentation update
Jan 22, 2024
d7f2c2c
Testupdate
mkosunen Jan 22, 2024
7de637a
Back to link
mkosunen Jan 22, 2024
4cb9f2a
Back to link
mkosunen Jan 22, 2024
fd45feb
Continuous Integration documentation update
Jan 22, 2024
87edb0c
Revert to docs directory from link
mkosunen Jan 22, 2024
1f2776a
Merge branch 'v1.11_RC' of github.com:TheSystemDevelopmentKit/inverte…
mkosunen Jan 22, 2024
6f763ff
Add empty docs
mkosunen Jan 22, 2024
b331a7d
Continuous Integration documentation update
Jan 22, 2024
cc0ab9c
Create static.yml
mkosunen Jan 22, 2024
406776d
Merge pull request #28 from TheSystemDevelopmentKit/mkosunen-patch-1
mkosunen Jan 22, 2024
394eec5
Modify git add
mkosunen Jan 22, 2024
350fe17
Modify git add
mkosunen Jan 22, 2024
3ef9e00
Update workflow
mkosunen Jan 22, 2024
fb2f71c
Continuous Integration documentation update
Jan 22, 2024
22d6b43
Update workflow
mkosunen Jan 22, 2024
b7dd06c
Merge branch 'v1.11_RC' of github.com:TheSystemDevelopmentKit/inverte…
mkosunen Jan 22, 2024
609a726
Update workflow
mkosunen Jan 22, 2024
1759bd4
Update workflow
mkosunen Jan 22, 2024
ea7a7f3
Update workflow
mkosunen Jan 22, 2024
21e5dfa
Continuous Integration documentation update
Jan 22, 2024
ebe1f39
Update workflow
mkosunen Jan 22, 2024
3e886be
Fixup
mkosunen Jan 22, 2024
076666a
Continuous Integration documentation update
Jan 22, 2024
801a277
Update workflow
mkosunen Jan 22, 2024
f726181
Continuous Integration documentation update
Jan 22, 2024
96709d8
Update only html
mkosunen Jan 22, 2024
67297d4
Merge branch 'v1.11_RC' of github.com:TheSystemDevelopmentKit/inverte…
mkosunen Jan 22, 2024
b1836e3
Fixup
mkosunen Jan 22, 2024
e374383
Prevent storing pickle
mkosunen Jan 22, 2024
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
78 changes: 53 additions & 25 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,68 @@
on:
push:
branches:
- v1.9_RC
- master
- v1.11_RC

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
doc_build_job:
runs-on: ubuntu-latest
# This project MUST be given permission to use the image blow. at
# Package settings-> Manage action access of the project hosting the
# package
# Your project MUST contain empty .nojekyll file. Github Pages will
# discard everything starting with '_' i.e. the stylefiles.
container: 'ghcr.io/thesystemdevelopmentkit/thesdktestimage:latest'
name: Test the submodules and Update the thesdk_template
name: Build documentation
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test and update
run: ./CI-helpers/test_and_release.sh -c -b "v1.9_RC" -t ${{ secrets.THESYDEKICK_TOKEN }}
uses: actions/checkout@v4
- name: Documentation builder action
run: cd doc && rm -rf build && make html && cd .. && touch ./doc/build/html/.nojekyll
- name: GIT commit and push documentation
env:
CI_COMMIT_MESSAGE: Continuous Integration documentation update
CI_COMMIT_AUTHOR: Continuous Integration
run: |
git config --global --add safe.directory /__w/inverter/inverter
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "${GITHUB_ACTOR}@noreply.github.com"
git add doc/build/html \
&& git commit -m "${{ env.CI_COMMIT_MESSAGE }}" \
&& git push \
|| echo "Nothing to update"

## This is an example how to run a image pull if needed.
# image_pull:
# runs-on: ubuntu-latest
# name: Pull docker image
# steps:
# - name: Login to Github Packages
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN}}
#
# - name: Pull image
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN}}
# - name: Pull Docker image
# run: docker pull 'ghcr.io/thesystemdevelopmentkit/thesdktestimage:latest'
pages_deploy:
needs: doc_build_job
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update
run: git checkout $(git rev-parse HEAD)
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './doc/build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Makefile
**/__pycache__
doc/build/*
doc/build/doctrees/environment.pickle
*.eps
*.pdf
*~
Expand Down
12 changes: 12 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Documentation

Default page, if exists, is https://TheSystemDevelopmentKit.github.io/inverter/

The 'docs' directory is a symbolic link to doc/build/html for github CI documentation builds.

Github documentation flow is defined in .github/workflows/main.yaml

The file ./doc/build/html.nojekyll is mandatory for Gitlab pages to parse
files and directories starting with '_'.


Binary file added doc/build/doctrees/environment.pickle
Binary file not shown.
Binary file added doc/build/doctrees/index.doctree
Binary file not shown.
Binary file added doc/build/doctrees/indices_and_tables.doctree
Binary file not shown.
Binary file added doc/build/doctrees/sections.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions doc/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 9141f2e4c7a05c963723f7cdb0b9af1c
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added doc/build/html/.nojekyll
Empty file.
17 changes: 17 additions & 0 deletions doc/build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. rtl documentation master file, created by
sphinx-quickstart on Thu Aug 15 11:47:06 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

========
Inverter
========

.. toctree::
:maxdepth: 3
:caption: Contents:

sections

indices_and_tables

7 changes: 7 additions & 0 deletions doc/build/html/_sources/indices_and_tables.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

16 changes: 16 additions & 0 deletions doc/build/html/_sources/sections.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. inverter documentation master file.
You can adapt this file completely to your liking,
but it should at least contain the root `toctree` directive.

Inverter class
==============

.. toctree::
:maxdepth: 3
:caption: Contents:

.. automodule:: inverter
:members:
:special-members: __init__
:undoc-members:

123 changes: 123 additions & 0 deletions doc/build/html/_static/_sphinx_javascript_frameworks_compat.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/* Compatability shim for jQuery and underscores.js.
*
* Copyright Sphinx contributors
* Released under the two clause BSD licence
*/

/**
* small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/
jQuery.urldecode = function(x) {
if (!x) {
return x
}
return decodeURIComponent(x.replace(/\+/g, ' '));
};

/**
* small helper function to urlencode strings
*/
jQuery.urlencode = encodeURIComponent;

/**
* This function returns the parsed url parameters of the
* current request. Multiple values per key are supported,
* it will always return arrays of strings for the value parts.
*/
jQuery.getQueryParameters = function(s) {
if (typeof s === 'undefined')
s = document.location.search;
var parts = s.substr(s.indexOf('?') + 1).split('&');
var result = {};
for (var i = 0; i < parts.length; i++) {
var tmp = parts[i].split('=', 2);
var key = jQuery.urldecode(tmp[0]);
var value = jQuery.urldecode(tmp[1]);
if (key in result)
result[key].push(value);
else
result[key] = [value];
}
return result;
};

/**
* highlight a given string on a jquery object by wrapping it in
* span elements with the given class name.
*/
jQuery.fn.highlightText = function(text, className) {
function highlight(node, addItems) {
if (node.nodeType === 3) {
var val = node.nodeValue;
var pos = val.toLowerCase().indexOf(text);
if (pos >= 0 &&
!jQuery(node.parentNode).hasClass(className) &&
!jQuery(node.parentNode).hasClass("nohighlight")) {
var span;
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
if (isInSVG) {
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
} else {
span = document.createElement("span");
span.className = className;
}
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
document.createTextNode(val.substr(pos + text.length)),
node.nextSibling));
node.nodeValue = val.substr(0, pos);
if (isInSVG) {
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
var bbox = node.parentElement.getBBox();
rect.x.baseVal.value = bbox.x;
rect.y.baseVal.value = bbox.y;
rect.width.baseVal.value = bbox.width;
rect.height.baseVal.value = bbox.height;
rect.setAttribute('class', className);
addItems.push({
"parent": node.parentNode,
"target": rect});
}
}
}
else if (!jQuery(node).is("button, select, textarea")) {
jQuery.each(node.childNodes, function() {
highlight(this, addItems);
});
}
}
var addItems = [];
var result = this.each(function() {
highlight(this, addItems);
});
for (var i = 0; i < addItems.length; ++i) {
jQuery(addItems[i].parent).before(addItems[i].target);
}
return result;
};

/*
* backward compatibility for jQuery.browser
* This will be supported until firefox bug is fixed.
*/
if (!jQuery.browser) {
jQuery.uaMatch = function(ua) {
ua = ua.toLowerCase();

var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
/(msie) ([\w.]+)/.exec(ua) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
[];

return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
jQuery.browser = {};
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
}
Loading