<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = '<NAME>'
SITENAME = 'Software Journeyman'

JINJA_ENVIRONMENT = {
    'extensions': [
        'jinja2.ext.i18n',
    ],
}

USE_FOLDER_AS_CATEGORY = True

PATH = 'content'

TIMEZONE = 'EST'

DEFAULT_LANG = 'en'
I18N_TEMPLATES_LANG = 'en'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

# How to extract data from filename
# Currently, only does the slug
# FILENAME_METADATA = '(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'
FILENAME_METADATA = '(?P<slug>.*)'

# Ignore caching
LOAD_CONTENT_CACHE = False

# static pathes for publishing
STATIC_PATHS = [
    'images',
    'theme/images'
]

#######################################################################
# Flex theme-specific configurations
#######################################################################

THEME = 'pelican-themes/Flex'

FAVICON = '/theme/images/favicon.ico'
PYGMENTS_STYLE = 'tango'

SITESUBTITLE = "<NAME> Blog"
SITEDESCRIPTION = "<NAME> blog"
SITEURL = 'http://localhost:8000'
SITELOGO = '/images/sam-headshot-kepler-300x300.jpg'

MAIN_MENU = True

LINKS = (
    # ('About', '/pages/about.html'),
)

SOCIAL = (
    ('github', 'https://github.com/pappasam'),
    ('linkedin-square', 'https://www.linkedin.com/in/samuel-roeca-23010735'),
    ('facebook','https://www.facebook.com/sam.roeca'),
    ('twitter', 'https://twitter.com/SamRoeca'),
    ('envelope-o', 'mailto:<EMAIL>'),
)

DIRECT_TEMPLATES = [
    'index',
    'categories',
    'authors',
    'archives',
    'tags',
]

MENUITEMS = (
    ('Archives', '/archives.html'),
    ('Categories', '/categories.html'),
    ('Tags', '/tags.html'),
)

#######################################################################
# Pelican Plugins
#######################################################################

PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = [
    'i18n_subsites',
    'sitemap',
    'extract_toc',
    'tipue_search',        # this must be modified for now to work
    'neighbors',
    'assets',              # minifies css assets
    'filetime_from_git',
    'code_include',
]


# tipue_search
#   see http://archerimagine.com/articles/pelican/integration-problem-with-elegant-theme.html#missing-icons-for-social-links
#   manually modify

# filetime_from_git
GIT_FILETIME_FROM_GIT = True
GIT_SHA_METADATA = True
GIT_GENERATE_PERMALINK = False
GIT_HISTORY_FOLLOWS_RENAME = True

# sitemap
SITEMAP = {
    'format': 'xml',
    'priorities': {
        'articles': 1,
        'pages': 1,
        'indexes': 1,
    },
    'changefreqs': {
        'articles': 'always',
        'pages': 'always',
        'indexes': 'always',
    },
}
<commit_msg>Update pygments linenumber settings<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = '<NAME>'
SITENAME = 'Software Journeyman'

JINJA_ENVIRONMENT = {
    'extensions': [
        'jinja2.ext.i18n',
    ],
}

USE_FOLDER_AS_CATEGORY = True

PATH = 'content'

TIMEZONE = 'EST'

DEFAULT_LANG = 'en'
I18N_TEMPLATES_LANG = 'en'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

# How to extract data from filename
# Currently, only does the slug
# FILENAME_METADATA = '(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'
FILENAME_METADATA = '(?P<slug>.*)'

# Ignore caching
LOAD_CONTENT_CACHE = False

# static pathes for publishing
STATIC_PATHS = [
    'images',
    'theme/images'
]

# Code blocks
PYGMENTS_RST_OPTIONS = {
    'linenos': 'inline',  # enable line numbers
}

#######################################################################
# Flex theme-specific configurations
#######################################################################

THEME = 'pelican-themes/Flex'

FAVICON = '/theme/images/favicon.ico'
PYGMENTS_STYLE = 'tango'

SITESUBTITLE = "<NAME>'s Blog"
SITEDESCRIPTION = "<NAME>'s blog"
SITEURL = 'http://localhost:8000'
SITELOGO = '/images/sam-headshot-kepler-300x300.jpg'

MAIN_MENU = True

LINKS = (
    # ('About', '/pages/about.html'),
)

SOCIAL = (
    ('github', 'https://github.com/pappasam'),
    ('linkedin-square', 'https://www.linkedin.com/in/samuel-roeca-23010735'),
    ('facebook','https://www.facebook.com/sam.roeca'),
    ('twitter', 'https://twitter.com/SamRoeca'),
    ('envelope-o', 'mailto:<EMAIL>'),
)

DIRECT_TEMPLATES = [
    'index',
    'categories',
    'authors',
    'archives',
    'tags',
]

MENUITEMS = (
    ('Archives', '/archives.html'),
    ('Categories', '/categories.html'),
    ('Tags', '/tags.html'),
)

#######################################################################
# Pelican Plugins
#######################################################################

PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = [
    'i18n_subsites',
    'sitemap',
    'extract_toc',
    'tipue_search',        # this must be modified for now to work
    'neighbors',
    'assets',              # minifies css assets
    'filetime_from_git',
    'code_include',
]


# tipue_search
#   see http://archerimagine.com/articles/pelican/integration-problem-with-elegant-theme.html#missing-icons-for-social-links
#   manually modify

# filetime_from_git
GIT_FILETIME_FROM_GIT = True
GIT_SHA_METADATA = True
GIT_GENERATE_PERMALINK = False
GIT_HISTORY_FOLLOWS_RENAME = True

# sitemap
SITEMAP = {
    'format': 'xml',
    'priorities': {
        'articles': 1,
        'pages': 1,
        'indexes': 1,
    },
    'changefreqs': {
        'articles': 'always',
        'pages': 'always',
        'indexes': 'always',
    },
}

{'fraction_non_alphanumeric': 0.2331013916500994, 'fraction_numerical': 0.01126573889993373, 'mean_word_length': 4.051882845188285, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5236484', 'n_tokens_mistral': 2224, 'n_tokens_neox': 2088, 'n_words': 385}