Skip to content

Commit

Permalink
Merge pull request #40 from pmccarthy/add_contributors_guide
Browse files Browse the repository at this point in the history
Add contributors guide
  • Loading branch information
openshift-merge-bot[bot] authored Dec 13, 2023
2 parents cd84ecd + b5ba394 commit f2acd53
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 84 deletions.
15 changes: 12 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const markdownIt = require("markdown-it");
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
const string = require('string')
const slugify = s => string(s).slugify().toString()
const eleventyAsciidoc = require("eleventy-plugin-asciidoc");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");

Expand All @@ -11,13 +14,19 @@ module.exports = function(eleventyConfig) {

eleventyConfig.addPassthroughCopy("src/.well-known");

let options = {
let markdownItOptions = {
html: true,
breaks: true,
linkify: true
};

eleventyConfig.setLibrary("md", markdownIt(options));
eleventyConfig.setLibrary(
'md',
markdownIt(markdownItOptions).use(markdownItAnchor, {
slugify: s => slugify(s),
permalink: markdownItAnchor.permalink.headerLink()
})
);
eleventyConfig.addPlugin(eleventyNavigationPlugin);

return {
Expand Down
233 changes: 153 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
},
"dependencies": {
"eleventy-plugin-asciidoc": "^2.0.0",
"markdown-it": "^13.0.1"
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.7",
"string": "^3.3.3"
}
}
Loading

0 comments on commit f2acd53

Please sign in to comment.