1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 06:25:21 +02:00

Updated docs, fixed using local favicon

This commit is contained in:
slaveeks 2022-07-08 16:32:12 +03:00
parent 50ebce3d15
commit a12f335976
2 changed files with 9 additions and 9 deletions

View file

@ -87,14 +87,14 @@ yarn test
You can configure application using configs in <code>/config</code> directory.
| Property | Role |
|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <code>port</code> | to set port of application |
| <code>database</code> | to name directory with data |
| <code>rcFile</code> | to set destination of codexdocsrc config file |
| <code>uploads</code> | to set destination of directory to save uploads |
| <code>secret</code> | to set secret |
| <code>favicon</code> | to set url or path to get favicon. Server uploads file by url and saves it to temporary directory. And you can get favicon by /favicon static route of application |
| Property | Role |
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <code>port</code> | to set port of application |
| <code>database</code> | to name directory with data |
| <code>rcFile</code> | to set destination of codexdocsrc config file |
| <code>uploads</code> | to set destination of directory to save uploads |
| <code>secret</code> | to set secret |
| <code>favicon</code> | to set url or favicon path (favicon need to be in /public directory), like `/myFavicon.png`, to get favicon. Server uploads file by url and saves it to temporary directory. And you can get favicon by /favicon static route of application |
You can configure application using configs in <code>/config</code> directory.

View file

@ -49,7 +49,7 @@ export async function downloadFavicon(destination: string, faviconFolder: string
// Check if string is url
if (!checkIsUrl(destination)) {
return {
destination: destination,
destination: `/${filename}`,
type: `image/${format}`,
} as FaviconData;
}