mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 09:58:03 +02:00
Chore: moves /src/data/help.json to /doc
This commit is contained in:
+2
-2
@@ -298,14 +298,14 @@ find_package(Python)
|
|||||||
if(Python_FOUND)
|
if(Python_FOUND)
|
||||||
message(STATUS "Minifying 'help.json'")
|
message(STATUS "Minifying 'help.json'")
|
||||||
execute_process(COMMAND ${Python_EXECUTABLE} -c "import json,sys;json.dump(json.load(sys.stdin),sys.stdout,separators=(',',':'))"
|
execute_process(COMMAND ${Python_EXECUTABLE} -c "import json,sys;json.dump(json.load(sys.stdin),sys.stdout,separators=(',',':'))"
|
||||||
INPUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/src/data/help.json"
|
INPUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/doc/help.json"
|
||||||
OUTPUT_VARIABLE DATATEXT_JSON_HELP)
|
OUTPUT_VARIABLE DATATEXT_JSON_HELP)
|
||||||
if(DATATEXT_JSON_HELP STREQUAL "")
|
if(DATATEXT_JSON_HELP STREQUAL "")
|
||||||
message(ERROR "DATATEXT_JSON_HELP is empty, which should not happen!")
|
message(ERROR "DATATEXT_JSON_HELP is empty, which should not happen!")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(WARNING "Python3 is not found, 'help.json' will not be minified")
|
message(WARNING "Python3 is not found, 'help.json' will not be minified")
|
||||||
file(READ "src/data/help.json" DATATEXT_JSON_HELP)
|
file(READ "doc/help.json" DATATEXT_JSON_HELP)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc")
|
if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc")
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ endBold = r"\fR" # end bold text tag
|
|||||||
# path to the current directory
|
# path to the current directory
|
||||||
pathToCurrentDir = path.dirname(__file__)
|
pathToCurrentDir = path.dirname(__file__)
|
||||||
# path to the JSON option file
|
# path to the JSON option file
|
||||||
pathToHelpFile = path.join(pathToCurrentDir, "../src/data/help.json")
|
pathToHelpFile = path.join(pathToCurrentDir, "../doc/help.json")
|
||||||
# man page section
|
# man page section
|
||||||
manSection = 1
|
manSection = 1
|
||||||
# title (center header)
|
# title (center header)
|
||||||
|
|||||||
Reference in New Issue
Block a user