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

doc(refactor): move static docs out of repo to be built automatically #187

Merged
merged 5 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
47 changes: 47 additions & 0 deletions .github/workflows/build_and_publish_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Publish Documentation (Pushes)

on:
push:
branches: [main]
release:
types: [published]

jobs:
build-and-deploy-docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install doxygen
pip install -r doc/requirements.txt

- name: Checkout main branch
continue-on-error: true
run: git checkout --track origin/main

- name: Build Documentation
run: |
cd doc
# ignore if the following command fails
build-docs -t esp32 -l en --project-path ../ --source-dir ./ --doxyfile_dir ./ || true
cp -r _build/en/esp32/html/* ../docs/.

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Espressif++ (ESPP)

This is the repository for some c++ components developed for the [ESP-IDF](https://github.com/espressif/esp-idf) farmework.
This is the repository for some c++ components developed for the
[ESP-IDF](https://github.com/espressif/esp-idf) framework.

* [Documentation](https://esp-cpp.github.io/espp/) - github hosted version of the documentation found in [./docs](./docs), which is built by running [./build_docs.sh](./build_docs.sh). NOTE: to ensure proper build environments, the documentation build now relies on docker, so you'll need to run `docker build -t esp-docs doc` once before running `build_docs.sh`.
* [Documentation](https://esp-cpp.github.io/espp/) - github hosted version of
the documentation found in [./docs](./docs). This documentation is
automatically built as part of the CI, but can be locally built for
validation by running [./build_docs.sh](./build_docs.sh). NOTE: to ensure
proper build environments, the local documentation build relies on docker, so
you'll need to run `docker build -t esp-docs doc` once before running
`build_docs.sh`. This is only required if you want to build the documentation
locally.

Many components in this repo contain example code (referenced in the documentation above) that shows some basic usage. This example code can be found in that component's `example` directory. NOTE: many component examples also make use of other components (esp. some of the foundational components such as `format`, `logger`, and `task`.
Many components in this repo contain example code (referenced in the
documentation above) that shows some basic usage. This example code can be found
in that component's `example` directory. NOTE: many component examples also make
use of other components (esp. some of the foundational components such as
`format`, `logger`, and `task`.

The [esp-cpp github organization](https://github.com/esp-cpp) contains other repositories that build specific demonstrations with these (and other) components.
The [esp-cpp github organization](https://github.com/esp-cpp) contains other
repositories that build specific demonstrations with these (and other)
components.

One such example is the [esp-box-emu](http://github.com/esp-cpp/esp-box-emu) repository, which builds upon these components to create a multiplatform emulation system using the ESP32-S3-BOX hardware.
One such example is the [esp-box-emu](http://github.com/esp-cpp/esp-box-emu)
repository, which builds upon these components to create a multiplatform
emulation system using the ESP32-S3-BOX hardware.
4 changes: 0 additions & 4 deletions docs/.buildinfo

This file was deleted.

Empty file removed docs/.nojekyll
Empty file.
Binary file removed docs/_images/complex-hfsm.png
Binary file not shown.
12 changes: 0 additions & 12 deletions docs/_sources/adc/adc_types.rst.txt

This file was deleted.

12 changes: 0 additions & 12 deletions docs/_sources/adc/ads1x15.rst.txt

This file was deleted.

17 changes: 0 additions & 17 deletions docs/_sources/adc/ads7138.rst.txt

This file was deleted.

17 changes: 0 additions & 17 deletions docs/_sources/adc/continuous_adc.rst.txt

This file was deleted.

14 changes: 0 additions & 14 deletions docs/_sources/adc/index.rst.txt

This file was deleted.

16 changes: 0 additions & 16 deletions docs/_sources/adc/oneshot_adc.rst.txt

This file was deleted.

17 changes: 0 additions & 17 deletions docs/_sources/adc/tla2528.rst.txt

This file was deleted.

16 changes: 0 additions & 16 deletions docs/_sources/base_component.rst.txt

This file was deleted.

20 changes: 0 additions & 20 deletions docs/_sources/base_peripheral.rst.txt

This file was deleted.

13 changes: 0 additions & 13 deletions docs/_sources/battery/bldc_driver.rst.txt

This file was deleted.

29 changes: 0 additions & 29 deletions docs/_sources/battery/bldc_motor.rst.txt

This file was deleted.

11 changes: 0 additions & 11 deletions docs/_sources/battery/index.rst.txt

This file was deleted.

32 changes: 0 additions & 32 deletions docs/_sources/battery/max1704x.rst.txt

This file was deleted.

13 changes: 0 additions & 13 deletions docs/_sources/bldc/bldc_driver.rst.txt

This file was deleted.

29 changes: 0 additions & 29 deletions docs/_sources/bldc/bldc_motor.rst.txt

This file was deleted.

15 changes: 0 additions & 15 deletions docs/_sources/bldc/index.rst.txt

This file was deleted.

12 changes: 0 additions & 12 deletions docs/_sources/ble/battery_service.rst.txt

This file was deleted.

Loading
Loading