29 lines
769 B
JavaScript
Executable File
29 lines
769 B
JavaScript
Executable File
/**
|
|
* SimpleDoc Configuration
|
|
*
|
|
* Set the BASE_PATH to match where your documentation is hosted:
|
|
* - Root of domain: BASE_PATH = ''
|
|
* - In subdirectory: BASE_PATH = '/subdirectory'
|
|
*
|
|
* Examples:
|
|
* - https://example.com/ → BASE_PATH = ''
|
|
* - https://example.com/docs/ → BASE_PATH = '/docs'
|
|
* - https://lastlife.net/doc/ → BASE_PATH = '/doc'
|
|
*/
|
|
|
|
const SIMPLEDOC_CONFIG = {
|
|
// Set this to your subdirectory path (no trailing slash)
|
|
// Leave empty ('') if at domain root
|
|
BASE_PATH: 'testSDD',
|
|
|
|
// Site name (used in header)
|
|
SITE_NAME: 'SimpleDoc',
|
|
|
|
// Optional: Add more config here as needed
|
|
};
|
|
|
|
// Helper function to get full path
|
|
function getPath(relativePath) {
|
|
return SIMPLEDOC_CONFIG.BASE_PATH + relativePath;
|
|
}
|