Skip to content

Commit 594ef6b

Browse files
Add Python and project specific customizations. Add workflows.
1 parent 6517467 commit 594ef6b

File tree

4 files changed

+76
-18
lines changed

4 files changed

+76
-18
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build Documentation and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
pages: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
18+
jobs:
19+
# Build job
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
# Checkout the repository
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
28+
submodules: "true"
29+
30+
- name: Set Version
31+
run: echo "PROJECT_NUMBER = `git describe --tags`" >> ./docs/doxygen/doxygen-config
32+
33+
- name: Build Documentation
34+
uses: mattnotmitt/doxygen-action@v1.9.5
35+
with:
36+
doxyfile-path: "./docs/doxygen/doxygen-config"
37+
38+
# Upload the documentation as an artifact
39+
- name: Upload documentation
40+
uses: actions/upload-pages-artifact@v3.0.1
41+
with:
42+
path: ./docs/html
43+
44+
# Deploy job
45+
deploy:
46+
# Add a dependency to the build job
47+
needs: build
48+
49+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
50+
permissions:
51+
pages: write # to deploy to Pages
52+
id-token: write # to verify the deployment originates from an appropriate source
53+
54+
# Deploy to the github-pages environment
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
59+
# Specify runner + deployment step
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

docs/doxygen/doxygen-config

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
4242
# title of most generated pages and in a few other places.
4343
# The default value is: My Project.
4444

45-
PROJECT_NAME = "SparkFun Toolkit"
45+
PROJECT_NAME = "Qwiic_SerLCD_Py"
4646

4747
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
4848
# could be handy for archiving the generated documentation or if some version
@@ -54,7 +54,7 @@ PROJECT_NAME = "SparkFun Toolkit"
5454
# for a project that appears at the top of each page and should give viewer a
5555
# quick idea about the purpose of the project. Keep the description short.
5656

57-
PROJECT_BRIEF = "Core Functionality Library"
57+
PROJECT_BRIEF = "Python module for I2C control of the SparkFun Qwiic Serial LCDs"
5858

5959
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
6060
# in the documentation. The maximum height of the logo should not exceed 55
@@ -253,7 +253,7 @@ MULTILINE_CPP_IS_BRIEF = NO
253253
# documentation blocks is shown as doxygen documentation.
254254
# The default value is: YES.
255255

256-
PYTHON_DOCSTRING = YES
256+
PYTHON_DOCSTRING = NO
257257

258258
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
259259
# documentation from any documented member that it re-implements.
@@ -305,7 +305,7 @@ OPTIMIZE_OUTPUT_FOR_C = NO
305305
# qualified scopes will look different, etc.
306306
# The default value is: NO.
307307

308-
OPTIMIZE_OUTPUT_JAVA = NO
308+
OPTIMIZE_OUTPUT_JAVA = YES
309309

310310
# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
311311
# sources. Doxygen will then generate output that is tailored for Fortran.
@@ -949,7 +949,7 @@ WARN_LOGFILE =
949949
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
950950
# Note: If this tag is empty the current directory is searched.
951951

952-
INPUT = src \
952+
INPUT = qwiic_serlcd.py \
953953
README.md \
954954
docs
955955

@@ -991,13 +991,7 @@ INPUT_FILE_ENCODING =
991991
# be provided as doxygen C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
992992
# *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
993993

994-
FILE_PATTERNS = *.c \
995-
*.cc \
996-
*.cxx \
997-
*.cpp \
998-
*.c++ \
999-
*.h \
1000-
*.hpp \
994+
FILE_PATTERNS = *.py \
1001995
*.markdown \
1002996
*.md \
1003997
*.dox

docs/doxygen/doxygen-custom/header.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<meta name="viewport" content="width=device-width, initial-scale=1" />
1111

1212
<!-- BEGIN opengraph metadata -->
13-
<meta property="og:title" content="SparkFun Toolkit" />
14-
<meta property="og:description" content="Common Functionality for Arduino Libraries" />
15-
<meta property="og:url" content="https://docs.sparkfun.com/SparkFun_Toolkit/" />
13+
<meta property="og:title" content="Qwiic_SerLCD_Py" />
14+
<meta property="og:description" content="Python module for I2C control of the SparkFun Qwiic Serial LCDs" />
15+
<meta property="og:url" content="https://docs.sparkfun.com/Qwiic_SerLCD_Py/" />
1616
<!-- END opengraph metadata -->
1717

1818
<!-- BEGIN twitter metadata -->
19-
<meta name="twitter:title" content="SparkFun Toolkit" />
20-
<meta name="twitter:description" content="Common Functionality for Arduino Libraries." />
19+
<meta name="twitter:title" content="Qwiic_SerLCD_Py" />
20+
<meta name="twitter:description" content="Python module for I2C control of the SparkFun Qwiic Serial LCDs" />
2121
<!-- END twitter metadata -->
2222

2323
<!--BEGIN PROJECT_NAME-->
@@ -38,7 +38,7 @@
3838
<body>
3939

4040
<!-- https://tholman.com/github-corners/ -->
41-
<a href="https://github.com/sparkfun/SparkFun_Toolkit" class="github-corner" title="View source on GitHub">
41+
<a href="https://github.com/sparkfun/Qwiic_SerLCD_Py" class="github-corner" title="View source on GitHub">
4242
<svg viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
4343
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
4444
<path

docs/images/sfe_flame.png

3.74 KB
Loading

0 commit comments

Comments
 (0)