-
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
64 lines (45 loc) · 1.56 KB
/
constants.rb
File metadata and controls
64 lines (45 loc) · 1.56 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
##
# Constants for use in 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')
# Wiki URL with a trailing slash for path handling.
WIKI_URL_SLASH = URI("#{WIKI_URL.to_s.delete_suffix('/')}/")
##
# 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'
# Full URL of the site.
SITE_URL = URI('https://wikinder.org')
# Site URL with a trailing slash for path handling.
SITE_URL_SLASH = URI("#{SITE_URL.to_s.delete_suffix('/')}/")
# Name of the publisher.
PUBLISHER_NAME = 'Wikinder'
# Full URL of the publisher.
PUBLISHER_URL = URI('https://wikinder.org')
# Full URL of the publisher's logo.
PUBLISHER_LOGO_URL = SITE_URL_SLASH.merge('/assets/images/icon.jpg')
# Heading of the home page.
HOME_HEADING = "Welcome to #{SITE_NAME}"
# Root-relative URL of the home page.
HOME_URL = URI(SITE_URL.request_uri)
# Home URL with a trailing slash for path handling.
HOME_URL_SLASH = URI("#{HOME_URL.to_s.delete_suffix('/')}/")
# URL of the stylesheet.
STYLESHEET_URL = URI('/assets/css/style.css')
# URL of the MathJax configuration script.
MATHJAX_CONFIG_SCRIPT_URL = URI('/assets/js/mathjax-config.js')
# Date format for article headers.
DISPLAY_DATE_FORMAT = '%B %-d, %-Y'