mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 15:35:25 +02:00
Updated docs, fixed using local favicon
This commit is contained in:
parent
50ebce3d15
commit
a12f335976
2 changed files with 9 additions and 9 deletions
16
README.md
16
README.md
|
@ -87,14 +87,14 @@ yarn test
|
||||||
|
|
||||||
You can configure application using configs in <code>/config</code> directory.
|
You can configure application using configs in <code>/config</code> directory.
|
||||||
|
|
||||||
| Property | Role |
|
| Property | Role |
|
||||||
|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| <code>port</code> | to set port of application |
|
| <code>port</code> | to set port of application |
|
||||||
| <code>database</code> | to name directory with data |
|
| <code>database</code> | to name directory with data |
|
||||||
| <code>rcFile</code> | to set destination of codexdocsrc config file |
|
| <code>rcFile</code> | to set destination of codexdocsrc config file |
|
||||||
| <code>uploads</code> | to set destination of directory to save uploads |
|
| <code>uploads</code> | to set destination of directory to save uploads |
|
||||||
| <code>secret</code> | to set secret |
|
| <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 |
|
| <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.
|
You can configure application using configs in <code>/config</code> directory.
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ export async function downloadFavicon(destination: string, faviconFolder: string
|
||||||
// Check if string is url
|
// Check if string is url
|
||||||
if (!checkIsUrl(destination)) {
|
if (!checkIsUrl(destination)) {
|
||||||
return {
|
return {
|
||||||
destination: destination,
|
destination: `/${filename}`,
|
||||||
type: `image/${format}`,
|
type: `image/${format}`,
|
||||||
} as FaviconData;
|
} as FaviconData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue