Skip to content

Commit

Permalink
fix: use external searching
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Aug 6, 2024
1 parent 7987894 commit 06c951a
Show file tree
Hide file tree
Showing 6 changed files with 3,083 additions and 0 deletions.
1 change: 1 addition & 0 deletions .doxyconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a dummy file, used by CMakeLists.txt
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Ignore JetBrains IDE files
.idea/

# Ignore build directories
build/
cmake-build-*/

# npm
node_modules/
package-lock.json

# ignore doxyconfig files
docs/*-doxyconfig*

# ignore fake third-party directory
third-party/
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.18)

# find doxygen and graphviz
find_package(Doxygen 1.10 REQUIRED dot) # debian and ubuntu left in the dust

Expand Down Expand Up @@ -30,6 +32,12 @@ file(COPY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile" "${SOURCE_DOCS_DIR}/Doxyfi
file(READ "${SOURCE_DOCS_DIR}/Doxyfile" DOXYFILE_CONTENTS)
file(APPEND "${SOURCE_DOCS_DIR}/Doxyfile-doxyconfig" "${DOXYFILE_CONTENTS}")

# if this is the doxyconfig project, copy doxygen-awesome-css to third-party
if(EXISTS "${CMAKE_SOURCE_DIR}/.doxyconfig")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/doxygen-awesome-css"
DESTINATION "${CMAKE_SOURCE_DIR}/third-party/doxyconfig")
endif()

# sunshine has its own icon and logo
if(NOT ${CMAKE_PROJECT_NAME} STREQUAL "Sunshine")
# download icon and logo
Expand Down
6 changes: 6 additions & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ PREDEFINED += __linux__
PREDEFINED += __MACH__
PREDEFINED += _WIN32

# search settings
SEARCHENGINE = YES
SERVER_BASED_SEARCH = YES
EXTERNAL_SEARCH = YES
SEARCHENGINE_URL = https://readthedocs.org/api/v3/search/

# general settings
CASE_SENSE_NAMES = YES
CREATE_SUBDIRS = NO
Expand Down
Loading

0 comments on commit 06c951a

Please sign in to comment.