-
Notifications
You must be signed in to change notification settings - Fork 32
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
Prepare v5.3.0 #217
Prepare v5.3.0 #217
Changes from 12 commits
b446a00
45ff964
86c342f
2fa4c5b
5e74ad5
edc7f53
6015650
dd4b37d
2c7bcef
12152c6
4a7f597
936aca4
568154f
f710437
eab6de3
bc2c186
70798c7
129ef7c
d7d8745
4b50c3d
d36db2d
7687ecd
b30dd40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,45 +23,74 @@ pipeline { | |
REPO = 'lib_mic_array' | ||
} | ||
stages { | ||
stage('Basic tests') { | ||
agent { | ||
label 'x86_64 && linux' | ||
} | ||
stages { | ||
stage("Setup") { | ||
// Clone and install build dependencies | ||
stage('Build and Docs') { | ||
parallel { | ||
stage('Build Docs') { | ||
agent { label "docker" } | ||
environment { XMOSDOC_VERSION = "v4.0" } | ||
steps { | ||
// Print the build agent name | ||
println "RUNNING ON" | ||
println env.NODE_NAME | ||
// Clone infrastructure repos | ||
sh "git clone --branch v1.4.6 [email protected]:xmos/infr_apps" | ||
sh "git clone --branch v1.2.1 [email protected]:xmos/infr_scripts_py" | ||
// clone | ||
dir("$REPO") { | ||
checkout scm | ||
sh "git submodule update --init --recursive" | ||
withTools(params.TOOLS_VERSION) { | ||
installDependencies() | ||
} | ||
checkout scm | ||
sh 'git submodule update --init --recursive --depth 1' | ||
sh "docker pull ghcr.io/xmos/xmosdoc:$XMOSDOC_VERSION" | ||
sh """docker run -u "\$(id -u):\$(id -g)" \ | ||
--rm \ | ||
-v ${WORKSPACE}:/build \ | ||
ghcr.io/xmos/xmosdoc:$XMOSDOC_VERSION -v""" | ||
archiveArtifacts artifacts: "doc/_build/**", allowEmptyArchive: true | ||
} | ||
post { | ||
cleanup { | ||
xcoreCleanSandbox() | ||
} | ||
} | ||
} | ||
stage("Lib checks") { | ||
steps { | ||
println "Unlikely these will pass.." | ||
// warnError("Source Check"){ sourceCheck("${REPO}") } | ||
// warnError("Changelog Check"){ xcoreChangelogCheck("${REPO}") } | ||
stage('Basic tests') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. weird change... but ok |
||
when { | ||
expression { !env.GH_LABEL_DOC_ONLY.toBoolean() } | ||
} | ||
agent { | ||
label 'x86_64 && linux' | ||
} | ||
stages { | ||
stage("Setup") { | ||
// Clone and install build dependencies | ||
steps { | ||
// Print the build agent name | ||
println "RUNNING ON" | ||
println env.NODE_NAME | ||
// Clone infrastructure repos | ||
sh "git clone --branch v1.4.6 [email protected]:xmos/infr_apps" | ||
sh "git clone --branch v1.2.1 [email protected]:xmos/infr_scripts_py" | ||
// clone | ||
dir("$REPO") { | ||
checkout scm | ||
sh "git submodule update --init --recursive" | ||
withTools(params.TOOLS_VERSION) { | ||
installDependencies() | ||
} | ||
} | ||
} | ||
} | ||
stage("Lib checks") { | ||
steps { | ||
println "Unlikely these will pass.." | ||
// warnError("Source Check"){ sourceCheck("${REPO}") } | ||
// warnError("Changelog Check"){ xcoreChangelogCheck("${REPO}") } | ||
} | ||
} | ||
} | ||
post { | ||
cleanup { | ||
xcoreCleanSandbox() | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
cleanup { | ||
xcoreCleanSandbox() | ||
} | ||
} | ||
} | ||
stage('HW tests') { | ||
when { | ||
expression { !env.GH_LABEL_DOC_ONLY.toBoolean() } | ||
} | ||
agent { | ||
label 'xvf3800' // We have plenty of these (6) and they have a single XTAG connected | ||
} | ||
|
@@ -115,4 +144,4 @@ pipeline { | |
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
###################### | ||
Building Documentation | ||
###################### | ||
|
||
Instructions are given below to build the documentation. The recommended method is using Docker, | ||
however, alternative instructions are provided in case using Docker in not an option. | ||
|
||
To develop the content of this repository, it is recommended to launch a `sphinx-autobuild` | ||
server as per the instructions below. Once started, point a web-browser at | ||
http://127.0.0.1:8000. If running the server within a VM, remember to configure | ||
port forwarding. | ||
#################### | ||
Documentation Source | ||
#################### | ||
|
||
You can now edit the .rst documentation, and your web-browser content will automatically | ||
update. | ||
This folder contains source files for the documentation. The sources do not render well in GitHub or an RST viewer. | ||
In addition, some information is not visible at all and some links will not be functional. | ||
|
||
************ | ||
Using Docker | ||
************ | ||
********************** | ||
Building Documentation | ||
********************** | ||
|
||
============= | ||
Prerequisites | ||
============= | ||
|
||
Install `Docker <https://www.docker.com/>`_. | ||
|
||
Pull the docker container: | ||
|
||
.. code-block:: console | ||
|
||
$ docker pull ghcr.io/xmos/doc_builder:main | ||
Use the `xmosdoc tool <https://github.com/xmos/xmosdoc>`_ either via docker or install it into a pip environment. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. xmosdoc is private There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see - this readme is for building the docs and is not included in the docs, I think that's fine |
||
======== | ||
Building | ||
|
@@ -37,48 +23,41 @@ To build the documentation, run the following command in the root of the reposit | |
|
||
.. code-block:: console | ||
|
||
$ docker run --rm -t -u "$(id -u):$(id -g)" -v $(pwd):/build -e REPO:/build -e DOXYGEN_INCLUDE=/build/doc/Doxyfile.inc ghcr.io/xmos/doc_builder:main | ||
# via pip package | ||
xmosdoc clean html latex | ||
# via docker | ||
$ docker run --rm -t -u "$(id -u):$(id -g)" -v $(pwd):/build ghcr.io/xmos/xmosdoc clean html latex | ||
|
||
******************** | ||
Without Using Docker | ||
******************** | ||
HTML document output is saved in the ``doc/_build/html`` folder. Open ``index.html`` to preview the saved documentation. | ||
|
||
============= | ||
Prerequisites | ||
============= | ||
Please refer to the ``xmosdoc`` documentation for a complete guide on how to use the tool. | ||
|
||
Install `Doxygen <https://www.doxygen.nl/index.html>`_. | ||
********************** | ||
Adding a New Component | ||
********************** | ||
|
||
Install the required Python packages: | ||
Follow the following steps to add a new component. | ||
|
||
.. code-block:: console | ||
- Add an entry for the new component's top-level document to the appropriate TOC in the documents tree. | ||
- If the new component uses `Doxygen`, append the appropriate path(s) to the INPUT variable in `Doxyfile.inc`. | ||
- If the new component includes `.rst` files that should **not** be part of the documentation build, append the appropriate pattern(s) to `exclude_patterns.inc`. | ||
|
||
$ pip install -r requirements.txt | ||
*** | ||
FAQ | ||
*** | ||
|
||
======== | ||
Building | ||
======== | ||
Q: Is it possible to build just a subset of the documentation? | ||
|
||
Build documentation: | ||
A: Yes, however it is not recommended at this time. | ||
|
||
.. code-block:: console | ||
|
||
$ make html | ||
Q: Is it possible to used the ``livehtml`` feature of Sphinx? | ||
|
||
Launch sphinx-autobuild server: | ||
A: Yes, run xmosdoc with the ``--auto`` option. | ||
|
||
.. code-block:: console | ||
Q: Where can I learn more about the XMOS ``xmosdoc`` tools? | ||
|
||
$ make livehtml | ||
A: See the https://github.com/xmos/xmosdoc repository. See the ``xmosdoc`` repository README for details on additional build options. | ||
|
||
Clean documentation: | ||
Q: How do I suggest enhancements to the XMOS ``xmosdoc`` tool? | ||
|
||
.. code-block:: console | ||
|
||
$ make clean | ||
|
||
Clean and build documentation with link check: | ||
|
||
.. code-block:: console | ||
|
||
$ make clean html linkcheck SPHINXOPTS="-W --keep-going" | ||
A: Create a new issue here: https://github.com/xmos/xmosdoc/issues |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/build/*build*/**/*.rst | ||
/build/*build*/**/*.md | ||
**/disclaimer.rst | ||
CHANGELOG.rst | ||
LICENSE.rst | ||
**README* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.. _getting_started: | ||
.. _mic_array_getting_started: | ||
|
||
Getting Started | ||
=============== | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(LIB_NAME lib_mic_array) | ||
set(LIB_VERSION 5.2.0) | ||
set(LIB_DEPENDENT_MODULES "lib_xcore_math(2.2.0)") | ||
set(LIB_INCLUDES | ||
api | ||
api/mic_array | ||
api/mic_array/cpp | ||
api/mic_array/etc | ||
api/mic_array/impl | ||
src | ||
src/etc | ||
) | ||
set(LIB_COMPILER_FLAGS -g -Os) | ||
|
||
XMOS_REGISTER_MODULE() |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
project: lib_mic_array | ||
title: Mic Array Library | ||
version: 5.1.0 | ||
|
||
documentation: | ||
exclude_patterns_path: doc/exclude_patterns.inc | ||
doxygen_projects: | ||
lib_mic_array: | ||
doxyfile_path: doc/Doxyfile.inc | ||
pdfs: | ||
doc/programming_guide/index: | ||
pdf_title: "{{title}} - Programming Guide" | ||
pdf_filename: "{{project}}_programming_guide_v{{version}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.