-
Notifications
You must be signed in to change notification settings - Fork 73
Migrate documentation from Wiki to Read The Docs #304
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3d56016
Update ReadTheDocs with new Structure and Home, Instalation Instructi…
CaGriesser b899473
Fix: store intermediate jlink file in /temp
LinjingZhang 475edeb
Chore: increase version number of flasher
LinjingZhang 317e8cc
Fix:
LinjingZhang 1f61aad
Feature:
LinjingZhang fcd2856
Fix: add . after message to be consistent with Arduino IDE's output
LinjingZhang e6cea13
Doc: clean docstring comments
LinjingZhang 523016c
Fix: adapt flasher script for macOS
LinjingZhang d9f2b25
Update Readme
CaGriesser b7c0501
Update docs
CaGriesser 0744619
docs: Add rtd config
ederjc 1b66377
docs: rephrase, fix typos
ederjc 0e4d11a
docs: add overview table for XMC boards.
ederjc 7a35232
docs: remove not required packages.
ederjc a2c69c7
docs: add makefiles
ederjc 305f75b
workflows: add docs workflow.
ederjc b2737e3
Added Built in Libraries
CaGriesser e044422
Added Arduino Variations without changes
CaGriesser 20ddd33
docs: fix typos and links
ederjc 3940be5
docs: replace code block by literal block for link.
ederjc d452a4b
docs: add legacy boards, fix format
ederjc a412dff
docs: fix typos
ederjc a48bf44
docs: rename arduino variations section, fix typos
ederjc 8827838
docs: rename image files for consistency
ederjc a626c85
docs: add double underline to avoid rst warnings
ederjc 3adfdf2
readme: add missing boards, re-formulate, add badges
ederjc 900797e
docs: Add note on python path in windows
ederjc 48757a6
update contribution guidelines
ederjc 7f37c88
remove wiki & update links to rtd
ederjc d3d3ea2
Merge branch 'master' into docs/rtd-staging
ederjc 68b3137
update url in package template
ederjc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build docs | ||
|
||
on: | ||
push: | ||
pull_request: | ||
paths: | ||
- docs/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Install Python packages | ||
run: pip install -r docs/requirements.txt | ||
- name: Build docs | ||
run: make -C docs/ html |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# We recommend specifying your dependencies to enable reproducible builds: | ||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,47 @@ | ||
# XMC-for-Arduino | ||
## Contributing to XMC-for-Arduino Project | ||
First important point **All Contributions** are welcomed. | ||
# Contributing to XMC for Arduino | ||
First important point: **All Contributions** are welcomed :open_hands:. | ||
|
||
Please contribute and raise issues via the [github repository](https://github.com/Infineon/XMC-for-Arduino/tree/develop) | ||
Please contribute and raise issues via the [github repository](https://github.com/Infineon/XMC-for-Arduino/tree/master) | ||
|
||
Check the **develop** branch for any Beta releases fixes for any issues you may find. | ||
### Overview for Contributors | ||
|
||
## Developer notes | ||
- Start your contribution by creating a [fork](https://github.com/Infineon/XMC-for-Arduino/fork) of this repository | ||
- It's recommended to create a separate branch for your contribution in your fork | ||
- Once your contribution is ready & tested, please create a [Pull Request](https://github.com/Infineon/XMC-for-Arduino/compare) to the master branch | ||
- Once we merged your changes to the master branch, they are automatically included in the next release | ||
|
||
### General points on repository branches and flow | ||
|
||
1. _master_ branch is intended to be copy of release version | ||
2. Please make Pull Requests to _develop_ branch for review, inclusion and availability for others | ||
3. At next release _develop_ is merged into _master_ for release | ||
4. Other branches are for other tests and not to be treated as anything but work in progress for now | ||
5. Check [XMC-for-Arduino Wiki](https://github.com/Infineon/XMC-for-Arduino/wiki) for any additional information | ||
|
||
### Develop Built-in Library | ||
<ul> | ||
<li>Reference to other libraries in the libraris folder. Typically required files include: </li> | ||
<ul> | ||
<li>source</li> | ||
<li>library.properties</li> | ||
<li>keywords.txt</li> | ||
<li>README.md</li> | ||
</ul> | ||
<li>Check out the official arduino libraries and try to keep the API consistent</li> | ||
<li>Add Compilation test in github workflow</li> | ||
<li>Update documentation ( README, github wiki...)</li> | ||
</ul> | ||
|
||
### Add new XMC Board | ||
|
||
### Local Running using Arduino IDE (**ON WINDOWS**): | ||
Clone the repository in arduino folder: | ||
- Open Arduino and install any Infineon XMC library (e.g. 2.2.0) | ||
- Open the library location in Arduino program folder | ||
`C:\Users\"USERNAME"\AppData\Local\Arduino15\packages\Infineon\hardware\xmc` | ||
### Testing in Arduino IDE (on Windows) | ||
Clone the repository in Arduino folder: | ||
- Open Arduino and install any version of this project as described [here](https://xmc-arduino.readthedocs.io/en/latest/installation-instructions.html). | ||
- Open the installation location in your Arduino program folder, e.g. | ||
`C:\Users\<username>\AppData\Local\Arduino15\packages\Infineon\hardware\xmc` | ||
- Open git bash, type command: | ||
`git clone "HTTP_SSH_REPOSITORY" "LIBRARY_VERSION (e.g. 2.2.0)"` | ||
|
||
This is a workaround for current local compilation/testing. | ||
`git clone <your-xmc-for-arduino-fork> <version>` | ||
|
||
### CICD | ||
This allows quick testing of local changes during development. | ||
|
||
Currently github workflow is used for automaticaly build test and release. Workflows are defined by YAML file in the `.github/workflows` directory. | ||
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. | ||
[!TIP] | ||
If you encounter strange behavior with Arduino IDE during development, try cleaning up the cache: | ||
* Windows: `C:\User\"username"\AppData\Roaming\arduino-ide` | ||
* Linux: `~/.config/arduino-ide` | ||
* macOS: `~/Library/Application Support/arduino-ide/` | ||
|
||
### WIKI | ||
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. | ||
### Automated Build Checks | ||
|
||
### Debug | ||
New Arduino IDE(v2.3.2) support debug. Refer to https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-debugger for more details. | ||
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). | ||
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. | ||
|
||
No hardware setup is required since the XMC eval board has Jlink on-board debugger, You can jump directly to the: | ||
https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-debugger/#getting-to-know-the-debugger | ||
### Creating and Maintaining Third Party Libraries | ||
#### Basics | ||
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 | ||
[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. | ||
|
||
#### XMC-for-Arduino Configuration | ||
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. | ||
|
||
If you encounter strange behavior with Arduino IDE, try cleaning up the cache | ||
When creating or maintaining third party or external libraries for XMC-for-Arduino please use this setting: | ||
~~~ | ||
architecture=xmc | ||
~~~ | ||
|
||
windows: `C:\User\"username"\AppData\Roaming\arduino-ide` | ||
linux: `~/.config/arduino-ide` | ||
macos: `~/Library/Application Support/arduino-ide/` | ||
If your library also supports other boards and architectures, add those in as well. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.