Skip to content

Commit

Permalink
Add initial framework for generating libblight documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Feb 7, 2024
1 parent aa17ea1 commit e4dec64
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/actions/web/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ runs:
shell: bash
run: |
cd shared/liboxide && make prod
- name: Generate libblight docs
shell: bash
run: |
cd shared/libblight && make prod
1 change: 1 addition & 0 deletions .github/workflows/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
paths:
- 'web/**'
- 'shared/liboxide/**'
- 'shared/libblight/**'
- '.github/actions/web/**'
jobs:
web:
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "shared/liboxide/doxygen-awesome-css"]
path = shared/liboxide/doxygen-awesome-css
[submodule "shared/doxygen-awesome-css"]
path = shared/doxygen-awesome-css
url = https://github.com/jothepro/doxygen-awesome-css.git
1 change: 1 addition & 0 deletions shared/doxygen-awesome-css
Submodule doxygen-awesome-css added at df88fe
File renamed without changes.
74 changes: 74 additions & 0 deletions shared/libblight/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------

*~
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash

# qtcreator generated files
*.pro.user*

# xemacs temporary files
*.flc

# Vim temporary files
.*.swp

# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*

# MinGW generated files
*.Debug
*.Release

# Python byte code
*.pyc

# Binaries
# --------
*.dll
*.exe

html/
latex/
20 changes: 20 additions & 0 deletions shared/libblight/Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PROJECT_NAME = libblight
GENERATE_QHP = YES
GENERATE_LATEX = NO
QCH_FILE = libblight.qch
QHP_NAMESPACE = libblight
QHP_VIRTUAL_FOLDER = doc
QHG_LOCATION = qhelpgenerator
GENERATE_TREEVIEW = YES
HTML_EXTRA_STYLESHEET = ../doxygen-awesome-css/doxygen-awesome.css \
../doxygen-awesome-css/doxygen-awesome-sidebar-only.css \
../doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css
HTML_EXTRA_FILES = ../doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js \
../doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js \
../doxygen-awesome-css/doxygen-awesome-paragraph-link.js
HTML_HEADER = ../doxygen-header.html
PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS
HIDE_UNDOC_MEMBERS = YES
HIDE_UNDOC_CLASSES = YES
MACRO_EXPANSION = YES
EXAMPLE_PATH = examples
20 changes: 20 additions & 0 deletions shared/libblight/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
DIST=../../web/dist/libblight

all: prod

html:
doxygen Doxyfile

$(DIST): html
cp -r html $(DIST)

prod: $(DIST)

dev: clean prod
while inotifywait -re close_write,create,delete .; do $(MAKE) clean prod; done

clean:
rm -rf $(DIST)
rm -rf html

.PHONY: all prod dev clean
14 changes: 7 additions & 7 deletions shared/liboxide/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ QHP_NAMESPACE = liboxide
QHP_VIRTUAL_FOLDER = doc
QHG_LOCATION = qhelpgenerator
GENERATE_TREEVIEW = YES
HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css \
doxygen-awesome-css/doxygen-awesome-sidebar-only.css \
doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css
HTML_EXTRA_FILES = doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js \
doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js \
doxygen-awesome-css/doxygen-awesome-paragraph-link.js
HTML_HEADER = header.html
HTML_EXTRA_STYLESHEET = ../doxygen-awesome-css/doxygen-awesome.css \
../doxygen-awesome-css/doxygen-awesome-sidebar-only.css \
../doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css
HTML_EXTRA_FILES = ../doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js \
../doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js \
../doxygen-awesome-css/doxygen-awesome-paragraph-link.js
HTML_HEADER = ../header.html
PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS
HIDE_UNDOC_MEMBERS = YES
HIDE_UNDOC_CLASSES = YES
Expand Down
1 change: 0 additions & 1 deletion shared/liboxide/doxygen-awesome-css
Submodule doxygen-awesome-css deleted from 4cd623
8 changes: 8 additions & 0 deletions web/src/documentation/api/00_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ Oxide also produces a shared library that can be used for application developmen
not yet fully encompass the full API provide through D-Bus, but will slowly work towards feature parity.

`You can find the documentation here <../../liboxide/index.html>`__


Libblight Shared Library
========================

Oxide provides a shared library for interacting with the display server.

`You can find the documentation here <../../libblight/index.html>`__

0 comments on commit e4dec64

Please sign in to comment.