Skip to content

Commit a9c45b4

Browse files
authored
Merge pull request #304 from Infineon/docs/rtd-staging
Migrate documentation from Wiki to Read The Docs
2 parents 52e575c + 68b3137 commit a9c45b4

File tree

91 files changed

+66032
-11577
lines changed

Some content is hidden

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

91 files changed

+66032
-11577
lines changed

.github/workflows/docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build docs
2+
3+
on:
4+
push:
5+
pull_request:
6+
paths:
7+
- docs/**
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
- name: Install Python packages
21+
run: pip install -r docs/requirements.txt
22+
- name: Build docs
23+
run: make -C docs/ html

.github/workflows/publish_docs_to_wiki.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# We recommend specifying your dependencies to enable reproducible builds:
19+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
python:
21+
install:
22+
- requirements: docs/requirements.txt

CONTRIBUTING.md

Lines changed: 34 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,47 @@
1-
# XMC-for-Arduino
2-
## Contributing to XMC-for-Arduino Project
3-
First important point **All Contributions** are welcomed.
1+
# Contributing to XMC for Arduino
2+
First important point: **All Contributions** are welcomed :open_hands:.
43

5-
Please contribute and raise issues via the [github repository](https://github.com/Infineon/XMC-for-Arduino/tree/develop)
4+
Please contribute and raise issues via the [github repository](https://github.com/Infineon/XMC-for-Arduino/tree/master)
65

7-
Check the **develop** branch for any Beta releases fixes for any issues you may find.
6+
### Overview for Contributors
87

9-
## Developer notes
8+
- Start your contribution by creating a [fork](https://github.com/Infineon/XMC-for-Arduino/fork) of this repository
9+
- It's recommended to create a separate branch for your contribution in your fork
10+
- Once your contribution is ready & tested, please create a [Pull Request](https://github.com/Infineon/XMC-for-Arduino/compare) to the master branch
11+
- Once we merged your changes to the master branch, they are automatically included in the next release
1012

11-
### General points on repository branches and flow
12-
13-
1. _master_ branch is intended to be copy of release version
14-
2. Please make Pull Requests to _develop_ branch for review, inclusion and availability for others
15-
3. At next release _develop_ is merged into _master_ for release
16-
4. Other branches are for other tests and not to be treated as anything but work in progress for now
17-
5. Check [XMC-for-Arduino Wiki](https://github.com/Infineon/XMC-for-Arduino/wiki) for any additional information
18-
19-
### Develop Built-in Library
20-
<ul>
21-
<li>Reference to other libraries in the libraris folder. Typically required files include: </li>
22-
<ul>
23-
<li>source</li>
24-
<li>library.properties</li>
25-
<li>keywords.txt</li>
26-
<li>README.md</li>
27-
</ul>
28-
<li>Check out the official arduino libraries and try to keep the API consistent</li>
29-
<li>Add Compilation test in github workflow</li>
30-
<li>Update documentation ( README, github wiki...)</li>
31-
</ul>
32-
33-
### Add new XMC Board
34-
35-
### Local Running using Arduino IDE (**ON WINDOWS**):
36-
Clone the repository in arduino folder:
37-
- Open Arduino and install any Infineon XMC library (e.g. 2.2.0)
38-
- Open the library location in Arduino program folder
39-
`C:\Users\"USERNAME"\AppData\Local\Arduino15\packages\Infineon\hardware\xmc`
13+
### Testing in Arduino IDE (on Windows)
14+
Clone the repository in Arduino folder:
15+
- Open Arduino and install any version of this project as described [here](https://xmc-arduino.readthedocs.io/en/latest/installation-instructions.html).
16+
- Open the installation location in your Arduino program folder, e.g.
17+
`C:\Users\<username>\AppData\Local\Arduino15\packages\Infineon\hardware\xmc`
4018
- Open git bash, type command:
41-
`git clone "HTTP_SSH_REPOSITORY" "LIBRARY_VERSION (e.g. 2.2.0)"`
42-
43-
This is a workaround for current local compilation/testing.
19+
`git clone <your-xmc-for-arduino-fork> <version>`
4420

45-
### CICD
21+
This allows quick testing of local changes during development.
4622

47-
Currently github workflow is used for automaticaly build test and release. Workflows are defined by YAML file in the `.github/workflows` directory.
48-
To merge your PR, please try to add a git tag in the format `VX.Y.Z` (e.g. V3.3.0) to trigger the release process in your fork and pass the compilation tests.
23+
[!TIP]
24+
If you encounter strange behavior with Arduino IDE during development, try cleaning up the cache:
25+
* Windows: `C:\User\"username"\AppData\Roaming\arduino-ide`
26+
* Linux: `~/.config/arduino-ide`
27+
* macOS: `~/Library/Application Support/arduino-ide/`
4928

50-
### WIKI
51-
Because of the limitations of the github wiki, it is difficult to create PR for changes of wiki. Please refer to the answer under: https://stackoverflow.com/questions/10642928/how-can-i-make-a-pull-request-for-a-wiki-page-on-github and create a ticket for your modifications.
29+
### Automated Build Checks
5230

53-
### Debug
54-
New Arduino IDE(v2.3.2) support debug. Refer to https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-debugger for more details.
31+
Currently a Github workflow is used for automatic compilation checking and releasing. Workflows are defined [here](https://github.com/Infineon/XMC-for-Arduino/tree/master/.github/workflows).
32+
Before opening a Pull Request for your contribution, please add a git tag in the format `Vx.y.z` (e.g. V3.3.0) to trigger the release process in your fork and pass the compilation tests.
5533

56-
No hardware setup is required since the XMC eval board has Jlink on-board debugger, You can jump directly to the:
57-
https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-debugger/#getting-to-know-the-debugger
34+
### Creating and Maintaining Third Party Libraries
35+
#### Basics
36+
The Arduino IDE allows for external libraries to be added to support specific devices and functions which are not part of the core setup. For details on creating libraries see the
37+
[Arduino library specifications](https://arduino.github.io/arduino-cli/library-specification/). If you add additional libraries to this project, make sure to [document them](https://xmc-arduino.readthedocs.io/en/latest/builtin-libraries.html) accordingly.
5838

39+
#### XMC-for-Arduino Configuration
40+
To ensure that a library specific to one architecture or board type is only compiled when a supporting board is set up, this specification includes a setting for *architecture* in the *library.properties* file.
5941

60-
If you encounter strange behavior with Arduino IDE, try cleaning up the cache
42+
When creating or maintaining third party or external libraries for XMC-for-Arduino please use this setting:
43+
~~~
44+
architecture=xmc
45+
~~~
6146

62-
windows: `C:\User\"username"\AppData\Roaming\arduino-ide`
63-
linux: `~/.config/arduino-ide`
64-
macos: `~/Library/Application Support/arduino-ide/`
47+
If your library also supports other boards and architectures, add those in as well.

Libraries.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)