diff --git a/CMakeLists.txt b/CMakeLists.txt index d56614cb3..918f43556 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,14 +298,14 @@ find_package(Python) if(Python_FOUND) message(STATUS "Minifying 'help.json'") 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) if(DATATEXT_JSON_HELP STREQUAL "") message(ERROR "DATATEXT_JSON_HELP is empty, which should not happen!") endif() else() 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() if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc") diff --git a/src/data/help.json b/doc/help.json similarity index 100% rename from src/data/help.json rename to doc/help.json diff --git a/scripts/gen-man.py b/scripts/gen-man.py index 1976e1d3a..f87a8b7ab 100755 --- a/scripts/gen-man.py +++ b/scripts/gen-man.py @@ -33,7 +33,7 @@ endBold = r"\fR" # end bold text tag # path to the current directory pathToCurrentDir = path.dirname(__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 manSection = 1 # title (center header)