-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.6.34' into v1
- Loading branch information
Showing
26 changed files
with
2,871 additions
and
10,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
"Stylus", | ||
"VuePress", | ||
[ | ||
"front[- ]matter", | ||
"frontmatter" | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
rules: { | ||
'@textlint-rule/no-unmatched-pair': true, | ||
apostrophe: true, | ||
'common-misspellings': true, | ||
diacritics: true, | ||
'en-capitalization': { | ||
allowHeading: false | ||
}, | ||
'stop-words': { | ||
severity: 'warning' | ||
}, | ||
terminology: { | ||
terms: `${__dirname}/.textlint.terms.json` | ||
}, | ||
'write-good': { | ||
severity: 'warning' | ||
} | ||
}, | ||
filters: { | ||
comments: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ARG TAG=14-alpine | ||
FROM nystudio107/node-dev-base:$TAG | ||
|
||
WORKDIR /app/ | ||
|
||
CMD ["run build"] | ||
|
||
ENTRYPOINT ["npm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
TAG?=14-alpine | ||
CONTAINER?=$(shell basename $(dir $(CURDIR)))-docs | ||
DOCKERRUN=docker container run \ | ||
--name ${CONTAINER} \ | ||
--rm \ | ||
-p 3002:3002 \ | ||
-t \ | ||
-v `pwd`:/app \ | ||
${CONTAINER}:${TAG} | ||
DOCSDEST?=../../../sites/nystudio107/web/docs/image-optimize | ||
|
||
.PHONY: docker build dev fix install lint update npm | ||
|
||
docker: | ||
docker build \ | ||
. \ | ||
-t ${CONTAINER}:${TAG} \ | ||
--build-arg TAG=${TAG} \ | ||
--no-cache | ||
build: docker install update | ||
${DOCKERRUN} \ | ||
run docs:build | ||
rm -rf ${DOCSDEST} | ||
mv ./docs/.vitepress/dist ${DOCSDEST} | ||
dev: docker install | ||
${DOCKERRUN} \ | ||
run docs:dev | ||
fix: docker install | ||
${DOCKERRUN} \ | ||
run docs:fix | ||
install: docker | ||
${DOCKERRUN} \ | ||
install | ||
lint: docker install | ||
${DOCKERRUN} \ | ||
run docs:lint | ||
update: docker | ||
${DOCKERRUN} \ | ||
update | ||
npm: docker | ||
${DOCKERRUN} \ | ||
$(filter-out $@,$(MAKECMDGOALS)) | ||
%: | ||
@: | ||
# ref: https://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
title: 'ImageOptimize Documentation', | ||
description: 'Documentation for the ImageOptimize plugin', | ||
base: '/docs/image-optimize/', | ||
lang: 'en-US', | ||
themeConfig: { | ||
repo: 'nystudio107/craft-imageoptimize', | ||
docsDir: 'docs/docs', | ||
docsBranch: 'v1', | ||
algolia: { | ||
apiKey: '', | ||
indexName: 'image-optimize' | ||
}, | ||
editLinks: true, | ||
editLinkText: 'Edit this page on GitHub', | ||
lastUpdated: 'Last Updated', | ||
sidebar: [ | ||
{ text: 'ImageOptimize Plugin', link: '/' }, | ||
{ text: 'ImageOptimize Overview', link: '/overview' }, | ||
{ text: 'Configuring ImageOptimize', link: '/configuring' }, | ||
{ text: 'Using ImageOptimize', link: '/using' }, | ||
{ text: 'Advanced Usage', link: '/advanced' }, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div class="nys-footer"> | ||
<span>Brought to you by:</span> | ||
<a | ||
href="https://github.com/sponsors/khalwat" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<img | ||
src="/resources/img/nys-logo.svg" | ||
aria-label="nystudio107 logo" | ||
/> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "SidebarBottom" | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.nys-footer { | ||
padding: 0 1.5rem 2rem; | ||
font-size: 0.8rem; | ||
} | ||
.nys-footer img { | ||
box-sizing: border-box; | ||
max-width: 200px; | ||
height: 80px; | ||
display: block; | ||
margin: 1rem 0; | ||
padding-left: 0.7rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:root { | ||
--c-brand: #48a391; | ||
--c-brand-light: #5db7a5; | ||
} | ||
|
||
.custom-block.tip { | ||
border-color: var(--c-brand-light); | ||
} | ||
|
||
.DocSearch { | ||
--docsearch-primary-color: var(--c-brand) !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Theme from 'vitepress/theme' | ||
import {h} from 'vue' | ||
import './custom.css' | ||
|
||
import SidebarBottom from './SidebarBottom.vue'; | ||
|
||
export default { | ||
...Theme, | ||
Layout() { | ||
return h(Theme.Layout, null, { | ||
'sidebar-bottom': () => h(SidebarBottom) | ||
} | ||
) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.