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

Migrate documentation from Wiki to Read The Docs #304

Merged
merged 31 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 30 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 Sep 5, 2024
b899473
Fix: store intermediate jlink file in /temp
LinjingZhang Aug 12, 2024
475edeb
Chore: increase version number of flasher
LinjingZhang Aug 12, 2024
317e8cc
Fix:
LinjingZhang Aug 13, 2024
1f61aad
Feature:
LinjingZhang Aug 20, 2024
fcd2856
Fix: add . after message to be consistent with Arduino IDE's output
LinjingZhang Aug 20, 2024
e6cea13
Doc: clean docstring comments
LinjingZhang Aug 21, 2024
523016c
Fix: adapt flasher script for macOS
LinjingZhang Aug 26, 2024
d9f2b25
Update Readme
CaGriesser Sep 5, 2024
b7c0501
Update docs
CaGriesser Sep 9, 2024
0744619
docs: Add rtd config
ederjc Sep 9, 2024
1b66377
docs: rephrase, fix typos
ederjc Sep 9, 2024
0e4d11a
docs: add overview table for XMC boards.
ederjc Sep 16, 2024
7a35232
docs: remove not required packages.
ederjc Sep 16, 2024
a2c69c7
docs: add makefiles
ederjc Sep 16, 2024
305f75b
workflows: add docs workflow.
ederjc Sep 16, 2024
b2737e3
Added Built in Libraries
CaGriesser Sep 13, 2024
e044422
Added Arduino Variations without changes
CaGriesser Sep 13, 2024
20ddd33
docs: fix typos and links
ederjc Sep 16, 2024
3940be5
docs: replace code block by literal block for link.
ederjc Sep 17, 2024
d452a4b
docs: add legacy boards, fix format
ederjc Sep 20, 2024
a412dff
docs: fix typos
ederjc Sep 20, 2024
a48bf44
docs: rename arduino variations section, fix typos
ederjc Sep 20, 2024
8827838
docs: rename image files for consistency
ederjc Sep 20, 2024
a626c85
docs: add double underline to avoid rst warnings
ederjc Sep 20, 2024
3adfdf2
readme: add missing boards, re-formulate, add badges
ederjc Sep 20, 2024
900797e
docs: Add note on python path in windows
ederjc Sep 20, 2024
48757a6
update contribution guidelines
ederjc Sep 23, 2024
7f37c88
remove wiki & update links to rtd
ederjc Sep 23, 2024
d3d3ea2
Merge branch 'master' into docs/rtd-staging
ederjc Sep 23, 2024
68b3137
update url in package template
ederjc Sep 23, 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
23 changes: 23 additions & 0 deletions .github/workflows/docs.yml
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
45 changes: 0 additions & 45 deletions .github/workflows/publish_docs_to_wiki.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .readthedocs.yaml
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
85 changes: 34 additions & 51 deletions CONTRIBUTING.md
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:.
jaenrig-ifx marked this conversation as resolved.
Show resolved Hide resolved

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.
36 changes: 0 additions & 36 deletions Libraries.md

This file was deleted.

Loading
Loading