Skip to content

Commit

Permalink
use internal mutliline comment style for sections
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed May 22, 2022
1 parent ad2b953 commit 6210ff7
Showing 1 changed file with 18 additions and 26 deletions.
44 changes: 18 additions & 26 deletions docs/.eleventy.js
Expand Up @@ -24,11 +24,10 @@ module.exports = function(eleventyConfig) {
*/
const pathPrefix = process.env.CONTEXT === "deploy-preview" ? "" : "/docs";

/**
****************************************************************************************
* Filters
* **************************************************************************************
*/
//------------------------------------------------------------------------------
// Filters
//------------------------------------------------------------------------------

eleventyConfig.addFilter("limitTo", (arr, limit) => arr.slice(0, limit));

eleventyConfig.addFilter("jsonify", variable => JSON.stringify(variable));
Expand Down Expand Up @@ -92,11 +91,10 @@ module.exports = function(eleventyConfig) {
return markdown.render(value);
});

/**
****************************************************************************************
* Plugins
* **************************************************************************************
*/
//------------------------------------------------------------------------------
// Plugins
//------------------------------------------------------------------------------

eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(syntaxHighlight, {
alwaysWrapLineHighlights: true
Expand All @@ -121,11 +119,10 @@ module.exports = function(eleventyConfig) {

}).use(markdownItAnchor, {}).disable("code"));

/**
*********************************************************************
* Shortcodes
* *******************************************************************
*/
//------------------------------------------------------------------------------
// Shortcodes
//------------------------------------------------------------------------------

eleventyConfig.addNunjucksShortcode("link", function(url) {

// eslint-disable-next-line no-invalid-this -- Eleventy API
Expand Down Expand Up @@ -242,12 +239,9 @@ module.exports = function(eleventyConfig) {

eleventyConfig.addWatchTarget("./src/assets/");


/**
****************************************************************************************
* File PassThroughs
* **************************************************************************************
*/
//------------------------------------------------------------------------------
// File PassThroughs
//------------------------------------------------------------------------------

eleventyConfig.addPassthroughCopy({
"./src/static": "/"
Expand Down Expand Up @@ -283,11 +277,9 @@ module.exports = function(eleventyConfig) {
"./node_modules/algoliasearch/dist/algoliasearch-lite.esm.browser.js": "/assets/js/algoliasearch.js"
});

/**
****************************************************************************************
* Collections
* **************************************************************************************
*/
//------------------------------------------------------------------------------
// Collections
//------------------------------------------------------------------------------

eleventyConfig.addCollection("docs", collection => collection.getFilteredByGlob("./src/**/**/*.md"));

Expand Down

0 comments on commit 6210ff7

Please sign in to comment.