-
Notifications
You must be signed in to change notification settings - Fork 0
Collapse file tree
Files
Search this repository
/
Copy pathconstants.rb
More file actions
More file actions
70 lines (46 loc) · 1.89 KB
/
constants.rb
File metadata and controls
70 lines (46 loc) · 1.89 KB
You must be signed in to make or propose changes
More edit options
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##
# Constants to be imported into the main script.
#
# frozen_string_literal: true
##
# Constants for the GitHub Wiki.
# Local path to the cloned wiki repository.
WIKI_REPO = Pathname('wikinder.wiki')
# Full URL of the wiki.
WIKI_URL = URI('https://github.com/wikinder/wikinder/wiki').freeze
WIKI_URL_SLASH = ensure_trailing_slash(WIKI_URL).freeze
# Full URL of the GitHub repository where the wiki is mirrored.
MIRROR_REPO_URL = URI('https://github.com/wikinder/wikinder').freeze
MIRROR_REPO_URL_SLASH = ensure_trailing_slash(MIRROR_REPO_URL).freeze
##
# Constants for the converted site.
# Local path to the output directory.
OUTPUT_DIRECTORY = Pathname('wikinder.github.io')
# Local path to the HTML template file.
HTML_TEMPLATE_FILE = Pathname('template.html.liquid')
# Title of the site.
SITE_NAME = 'Wikinder'
ESCAPED_SITE_NAME = CGI.escape_html(SITE_NAME).freeze
# Full URL of the site.
SITE_URL = URI('https://wikinder.org').freeze
SITE_URL_SLASH = ensure_trailing_slash(SITE_URL).freeze
# Name of the publisher.
PUBLISHER_NAME = 'Wikinder'
ESCAPED_PUBLISHER_NAME = CGI.escape_html(PUBLISHER_NAME).freeze
# Full URL of the publisher.
PUBLISHER_URL = URI('https://wikinder.org').freeze
# Full URL of the publisher's logo.
PUBLISHER_LOGO_URL = SITE_URL_SLASH.merge('/assets/images/icon.jpg').freeze
# Main heading of the home page.
HOME_HEADING = "Welcome to #{SITE_NAME}".freeze
# Root-relative URL of the home page.
HOME_URL = URI(SITE_URL.request_uri).freeze
HOME_URL_SLASH = ensure_trailing_slash(HOME_URL).freeze
# Full URL of the license for the content.
LICENSE_URL = URI('https://creativecommons.org/licenses/by-sa/4.0/').freeze
# URL of the stylesheet.
STYLESHEET_URL = URI('/assets/css/style.css').freeze
# URL of the MathJax configuration script.
MATHJAX_CONFIG_SCRIPT_URL = URI('/assets/js/mathjax-config.js').freeze
# Date format for article headers.
DISPLAY_DATE_FORMAT = '%B %-d, %-Y'