From 53ed6d7d1e678d7486337ce67a2f17b30bac21ac Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 26 Jan 2017 18:52:54 +0100 Subject: Generate HTML documentation using MkDocs (WIP) MkDocs is a static site generator geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML file. * http://www.mkdocs.org/ * http://www.mkdocs.org/user-guide/configuration/ Ref. #312 * remove pandoc-generated HTML documentation * move markdown doc to doc/md/, * mkdocs.yml: * generate HTML doc in doc/html * add pages TOC/ordering * use index.md as index page * Makefile: remove execute permissions from generated files * Makefile: rewrite htmlpages GFM to markdown conversion using sed: awk expression aslo matched '][' which causes invalid output on complex links with images or code blocks * Add mkdocs.yml to .gitattributes, exclude this file from release archives * Makefile: rename: htmldoc -> doc_html target * run make doc: pull latest markdown documentation from wiki * run make htmlpages: update html documentation --- doc/Shaarli-configuration.html | 298 ----------------------------------------- 1 file changed, 298 deletions(-) delete mode 100644 doc/Shaarli-configuration.html (limited to 'doc/Shaarli-configuration.html') diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html deleted file mode 100644 index c696c97c..00000000 --- a/doc/Shaarli-configuration.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - Shaarli – Shaarli configuration - - - - - - -
- -
-

Shaarli configuration

-

Shaarli configuration

-

Foreword

-

Do not edit configuration options in index.php! Your changes would be lost.

-

Once your Shaarli instance is installed, the file data/config.json.php is generated:

- -

File and directory permissions

-

The server process running Shaarli must have:

- -

On a Linux distribution:

- -

Configuration

-

In data/config.json.php.

-

See also Plugin System.

-

Credentials

-
-

You shouldn't edit those.

-
-

login: Login username.
-hash: Generated password hash.
-salt: Password salt.

-

General

-

title: Shaarli's instance title.
-header_link: Link to the homepage.
-links_per_page: Number of shaares displayed per page.
-timezone: See the list of supported timezones.
-enabled_plugins: List of enabled plugins.

-

Security

-

session_protection_disabled: Disable session cookie hijacking protection (not recommended).
-It might be useful if your IP adress often changes.
-ban_after: Failed login attempts before being IP banned.
-ban_duration: IP ban duration in seconds.
-open_shaarli: Anyone can add a new link while logged out if enabled.
-trusted_proxies: List of trusted IP which won't be banned after failed login attemps. Useful if Shaarli is behind a reverse proxy.

-

Resources

-

data_dir: Data directory.
-datastore: Shaarli's links database file path.
-history: Shaarli's operation history file path.
-updates: File path for the ran updates file.
-log: Log file path.
-update_check: Last update check file path.
-raintpl_tpl: Templates directory.
-raintpl_tmp: Template engine cache directory.
-thumbnails_cache: Thumbnails cache directory.
-page_cache: Shaarli's internal cache directory.
-ban_file: Banned IP file path.

-

Updates

-

check_updates: Enable or disable update check to the git repository.
-check_updates_branch: Git branch used to check updates (e.g. stable or master).
-check_updates_interval: Look for new version every N seconds (default: every day).

-

Privacy

-

default_private_links: Check the private checkbox by default for every new link.
-hide_public_links: All links are hidden while logged out.
-hide_timestamps: Timestamps are hidden.

-

Feed

-

rss_permalinks: Enable this to redirect RSS links to Shaarli's permalinks instead of shaared URL.
-show_atom: Display ATOM feed button.

-

Thumbnail

-

enable_thumbnails: Enable or disable thumbnail display.
-enable_localcache: Enable or disable local cache.

-

Redirector

-

url: Redirector URL, such as anonym.to.
-encode_url: Enable this if the redirector needs encoded URL to work properly.

-

Configuration file example

-
<?php /*
-{
-    "credentials": {
-        "login": "<login>",
-        "hash": "<password hash>",
-        "salt": "<password salt>"
-    },
-    "security": {
-        "ban_after": 4,
-        "session_protection_disabled": false,
-        "ban_duration": 1800,
-        "trusted_proxies": [[](.html)
-            "1.2.3.4",
-            "5.6.7.8"
-        ]
-    },
-    "resources": {
-        "data_dir": "data",
-        "config": "data\/config.php",
-        "datastore": "data\/datastore.php",
-        "ban_file": "data\/ipbans.php",
-        "updates": "data\/updates.txt",
-        "log": "data\/log.txt",
-        "update_check": "data\/lastupdatecheck.txt",
-        "raintpl_tmp": "tmp\/",
-        "raintpl_tpl": "tpl\/",
-        "thumbnails_cache": "cache",
-        "page_cache": "pagecache"
-    },
-    "general": {
-        "check_updates": true,
-        "rss_permalinks": true,
-        "links_per_page": 20,
-        "default_private_links": true,
-        "enable_thumbnails": true,
-        "enable_localcache": true,
-        "check_updates_branch": "stable",
-        "check_updates_interval": 86400,
-        "enabled_plugins": [[](.html)
-            "markdown",
-            "wallabag",
-            "archiveorg"
-        ],
-        "timezone": "Europe\/Paris",
-        "title": "My Shaarli",
-        "header_link": "?"
-    },
-    "extras": {
-        "show_atom": false,
-        "hide_public_links": false,
-        "hide_timestamps": false,
-        "open_shaarli": false,
-        "redirector": "http://anonym.to/?",
-        "redirector_encode_url": false
-    },
-    "general": {
-        "header_link": "?",
-        "links_per_page": 20,
-        "enabled_plugins": [[](.html)
-            "markdown",
-            "wallabag"
-        ],
-        "timezone": "Europe\/Paris",
-        "title": "My Shaarli"
-    },
-    "updates": {
-        "check_updates": true,
-        "check_updates_branch": "stable",
-        "check_updates_interval": 86400
-    },
-    "feed": {
-        "rss_permalinks": true,
-        "show_atom": false
-    },
-    "privacy": {
-        "default_private_links": true,
-        "hide_public_links": false,
-        "hide_timestamps": false
-    },
-    "thumbnail": {
-        "enable_thumbnails": true,
-        "enable_localcache": true
-    },
-    "redirector": {
-        "url": "http://anonym.to/?",
-        "encode_url": false
-    },
-    "plugins": {
-        "WALLABAG_URL": "http://demo.wallabag.org",
-        "WALLABAG_VERSION": "1"
-    }
-} ?>
-

Additional configuration

-

The playvideos plugin may require that you adapt your server's
-Content Security Policy
-configuration to work properly.(.html)

- - -- cgit v1.2.3