Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ $RECYCLE.BIN/
*.lnk

# End of https://mrkandreev.name/snippets/gitignore-generator/#Linux,macOS,Windows

_site/
node_modules/
28 changes: 28 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import sitemap from '@quasibit/eleventy-plugin-sitemap';

/** @param {import("@11ty/eleventy/UserConfig").default} eleventyConfig */
export default function (eleventyConfig) {
const inputPath = "./public";

eleventyConfig.setInputDirectory(inputPath);
eleventyConfig.setOutputDirectory("./_site");

// Generate a sitemap
eleventyConfig.addPlugin(sitemap, {
sitemap: {
hostname: 'https://tools.passkeys.dev',
},
});

// Specify assets for the homepage
eleventyConfig.addPassthroughCopy(`${inputPath}/assets/`);
eleventyConfig.addPassthroughCopy(`${inputPath}/*.{png,txt}`);

// Declare tool-specific assets
eleventyConfig.addPassthroughCopy(`${inputPath}/featuredetect/**/*.{png,txt}`);
eleventyConfig.addPassthroughCopy(`${inputPath}/relatedorigins/**/*.{js,}`);
eleventyConfig.addPassthroughCopy(`${inputPath}/responsedecoder/**/*.{js,}`);

// Configure global site data for templates
eleventyConfig.addGlobalData("siteTitle", "Passkey Developer Tools");
}
Loading