forked from dmikushin/tray
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c4801d
commit 6193bce
Showing
19 changed files
with
518 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,32 @@ | ||
--- | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
version: 2 | ||
|
||
build: | ||
os: ubuntu-24.04 | ||
tools: | ||
python: "miniconda-latest" | ||
commands: | ||
# because we are overriding the build commands, we need to setup the environment ourselves | ||
- cat docs/environment.yml | ||
- conda env create --quiet --name ${READTHEDOCS_VERSION} --file docs/environment.yml | ||
- mkdir -p ${READTHEDOCS_OUTPUT} | ||
- | | ||
wget "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/favicon.ico" \ | ||
-O ${READTHEDOCS_OUTPUT}lizardbyte.ico | ||
- | | ||
wget "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/logo-128x128.png" \ | ||
-O ${READTHEDOCS_OUTPUT}lizardbyte.png | ||
- cd docs && doxygen Doxyfile | ||
|
||
# using conda, we can get newer doxygen and graphviz than ubuntu provide | ||
# https://github.com/readthedocs/readthedocs.org/issues/8151#issuecomment-890359661 | ||
conda: | ||
environment: docs/environment.yml | ||
|
||
submodules: | ||
include: all | ||
recursive: true |
This file contains 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
This file contains 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
This file contains 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,41 @@ | ||
# find doxygen and graphviz | ||
find_package(Doxygen | ||
REQUIRED dot) | ||
|
||
# define variables based on whether we are building on readthedocs | ||
if(DEFINED ENV{READTHEDOCS}) | ||
set(DOXYGEN_BUILD_DIR_CMAKE $ENV{READTHEDOCS_OUTPUT}) | ||
set(DOXYGEN_PROJECT_VERSION $ENV{READTHEDOCS_VERSION}) | ||
else() | ||
set(DOXYGEN_BUILD_DIR_CMAKE "${CMAKE_CURRENT_BINARY_DIR}/build") | ||
set(DOXYGEN_PROJECT_VERSION ${PROJECT_VERSION}) | ||
endif() | ||
message(STATUS "DOXYGEN_BUILD_DIR_CMAKE: ${DOXYGEN_BUILD_DIR_CMAKE}") | ||
|
||
# download icon and logo | ||
file(DOWNLOAD | ||
"https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/favicon.ico" | ||
"${DOXYGEN_BUILD_DIR_CMAKE}/lizardbyte.ico" | ||
) | ||
file(DOWNLOAD | ||
"https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/logo-128x128.png" | ||
"${DOXYGEN_BUILD_DIR_CMAKE}/lizardbyte.png" | ||
) | ||
|
||
# create build directories, as doxygen fails to create it in some cases? | ||
file(MAKE_DIRECTORY "${DOXYGEN_BUILD_DIR_CMAKE}/html") | ||
|
||
# convert to relative path, so doxygen doesn't get confused on Windows | ||
file(RELATIVE_PATH DOXYGEN_BUILD_DIR_RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${DOXYGEN_BUILD_DIR_CMAKE}") | ||
message(STATUS "DOXYGEN_BUILD_DIR_RELATIVE: ${DOXYGEN_BUILD_DIR_RELATIVE}") | ||
|
||
# build docs | ||
add_custom_target(docs ALL | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" | ||
COMMENT "Building Doxygen documentation" | ||
COMMAND ${CMAKE_COMMAND} -E env | ||
READTHEDOCS_OUTPUT=${DOXYGEN_BUILD_DIR_RELATIVE} | ||
READTHEDOCS_VERSION=${DOXYGEN_PROJECT_VERSION} | ||
${DOXYGEN_EXECUTABLE} Doxyfile | ||
VERBATIM | ||
) |
Oops, something went wrong.