Skip to content

Commit

Permalink
docs syncify.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
panoply committed Sep 7, 2024
1 parent b1912fb commit 98d75fd
Show file tree
Hide file tree
Showing 107 changed files with 15,849 additions and 5,489 deletions.
30 changes: 19 additions & 11 deletions docs/.eleventy.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function search (config) {
config.on('eleventy.after', async () => {
if (page.length > 0) {
const content = JSON.stringify(page, null, 2);
await writeFile('./public/spx.json', content);
await writeFile('./public/syncify.json', content);
}
});

Expand Down Expand Up @@ -155,10 +155,20 @@ module.exports = eleventy(function (config) {

const md = markdown(config, {
highlight: {
block: ({ raw, language }) => papyrus.highlight(raw, {
language,
lineNumbers: language !== 'bash'
}),
block: ({ raw, language }) => {

return papyrus.highlight(raw, {
language,
lineNumbers: (
language === 'json' ||
language === 'ts' ||
language === 'typescript' ||
language === 'javascript' ||
language === 'js' ||
language === 'liquid'
)
})
},
inline: ({ raw, language }) => papyrus.inline(raw, { language })
},
options: {
Expand All @@ -178,11 +188,9 @@ module.exports = eleventy(function (config) {
md.use(attrs);
md.disable('code');

config.setLiquidOptions({
jsTruthy: true,
})
config.addLiquidShortcode('schema', () => {})
config.addLiquidShortcode('endschema', () => {})
config.addLiquidShortcode('schema', () => '{% schema %}')
config.addLiquidShortcode('endschema', () => '{% endschema %}')
config.addFilter('markdown', (value) => md.renderInline(value))
config.addFilter('anchor', (value) => `#${util.slug(value)}`);
config.addLiquidShortcode('search', search(config));
config.addPlugin(sprite, { inputPath: './src/assets/svg', spriteShortCode: 'sprite' });
Expand All @@ -206,7 +214,7 @@ module.exports = eleventy(function (config) {
input: 'src/views',
output: 'public',
includes: '',
layouts: '',
layouts: 'layout',
data: 'data'
}
};
Expand Down
52 changes: 0 additions & 52 deletions docs/.liquidrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions docs/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "sissel.shopify-liquid"
},
"liquid.format.rules": {
"liquid": {
"delimiterTrims": "always"
}
},
"stylelint.validate": [
"scss",
"sass",
"less",
"postcss"
],
"spx.files": [
"./docs/src/app/**/*.ts"
],
"somesass.loadPaths": [
"./docs/src/sass/**/*.scss",
"!./docs/node_modules/@brixtol/bootstrap/_variables.scss"
],
"stylelint.packageManager": "pnpm",
"stylelint.enable": false,
"highlight.regexes": {
"(?<=:{3,4}\\s)(grid|rule|note)": {
"decorations": [
Expand Down
Empty file removed docs/changelog.md
Empty file.
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@brixtol/bootstrap": "^1.7.5",
"@fullhuman/postcss-purgecss": "^6.0.0",
"@sissel/stylelint-config": "^1.2.4",
"@syncify/cli": "link:..",
"autoprefixer": "^10.4.20",
"concurrently": "^8.2.2",
"cssnano": "^7.0.5",
Expand Down
1 change: 0 additions & 1 deletion docs/public/base/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion docs/public/bundle.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 98d75fd

Please sign in to comment.