Skip to content

Commit

Permalink
[Docs] Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Feb 2, 2022
1 parent 310ebc0 commit 07d15f5
Show file tree
Hide file tree
Showing 48 changed files with 171 additions and 99 deletions.
26 changes: 13 additions & 13 deletions .eslintrc.js
@@ -1,15 +1,15 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
},
env: {
browser: true,
es2021: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'prettier/prettier': ['error'],
},
};
4 changes: 4 additions & 0 deletions .prettierrc
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"singleQuote": true
}
2 changes: 1 addition & 1 deletion docs/404.html
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=UTF-8><meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name=viewport><link href=/assets/favicons/apple-touch-icon.png rel=apple-touch-icon sizes=180x180><link href=/assets/favicons/favicon-32x32.png rel=icon sizes=32x32 type=image/png><link href=/assets/favicons/favicon-16x16.png rel=icon sizes=16x16 type=image/png><link href=/assets/favicons/site.webmanifest rel=manifest><link color=#000000 href=/assets/favicons/safari-pinned-tab.svg rel=mask-icon><link href=/assets/favicons/favicon.ico rel="shortcut icon"><meta content=Pushword name=apple-mobile-web-app-title><meta content=Pushword name=application-name><meta content=#fff name=msapplication-TileColor><meta content=/assets/favicons/browserconfig.xml name=msapplication-config><meta content=#fff name=theme-color><title>Oops! Une erreur...</title><link href=/assets/tw.min.css?81376690c rel=stylesheet><style>:root{--primary:#ef8206;--secondary:#d97706;--font-family:Inter var,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}</style><style>.nojs{display:inline-block}</style><script>document.head.insertAdjacentHTML('beforeend','<style>.nojs{display:none !important}<\/style>')</script><link href=https://pushword.piedweb.com/feed.xml rel=alternate title="Pushword &raquo; Flux" type=application/rss+xml> <body><div class="container mt-5 mx-auto"><h1>Oops! Une erreur...</h1> <p> <p>Un écrou semble s'être dévisser.<br>Merci de nous informer sur votre environnement lorsque cette erreur c'est produite.<br><br><a class="btn btn-secondary" href=/>Retour</a></div> <script async src=/assets/app.min.js?56a20dbfb></script>
<!DOCTYPE html><html><head><meta charset=UTF-8><meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name=viewport><link href=/assets/favicons/apple-touch-icon.png rel=apple-touch-icon sizes=180x180><link href=/assets/favicons/favicon-32x32.png rel=icon sizes=32x32 type=image/png><link href=/assets/favicons/favicon-16x16.png rel=icon sizes=16x16 type=image/png><link href=/assets/favicons/site.webmanifest rel=manifest><link color=#000000 href=/assets/favicons/safari-pinned-tab.svg rel=mask-icon><link href=/assets/favicons/favicon.ico rel="shortcut icon"><meta content=Pushword name=apple-mobile-web-app-title><meta content=Pushword name=application-name><meta content=#fff name=msapplication-TileColor><meta content=/assets/favicons/browserconfig.xml name=msapplication-config><meta content=#fff name=theme-color><title>Oops! Une erreur...</title><link href=/assets/tw.min.css?bb3650024 rel=stylesheet><style>:root{--primary:#ef8206;--secondary:#d97706;--font-family:Inter var,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}</style><style>.nojs{display:inline-block}</style><script>document.head.insertAdjacentHTML('beforeend','<style>.nojs{display:none !important}<\/style>')</script><link href=https://pushword.piedweb.com/feed.xml rel=alternate title="Pushword &raquo; Flux" type=application/rss+xml> <body><div class="container mt-5 mx-auto"><h1>Oops! Une erreur...</h1> <p> <p>Un écrou semble s'être dévisser.<br>Merci de nous informer sur votre environnement lorsque cette erreur c'est produite.<br><br><a class="btn btn-secondary" href=/>Retour</a></div> <script async src=/assets/app.min.js?672de5420></script>
2 changes: 1 addition & 1 deletion docs/architecture.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/app.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/assets/tw.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/command.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/component/entity-filter.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/configuration.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/contribute.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/create-extension.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/editor.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/extension.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/admin-block-editor.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/admin.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/advanced-main-image.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/conversation.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/facebook.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/flat.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/page-scanner.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/page-update-notifier.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/static-generator.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/svg.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/template-editor.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/extension/version.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/extensions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/installation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/license.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/manage-assets.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/override-theme.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/roadmap.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/themes.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/upgrade.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -4,5 +4,10 @@
"eslint": "^8.8.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.4"
},
"dependencies": {
"@symfony/webpack-encore": "^1.8.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0"
}
}
52 changes: 28 additions & 24 deletions packages/docs/assets/webpack.config.js
@@ -1,25 +1,25 @@
var Encore = require("@symfony/webpack-encore");
const tailwindcss = require("tailwindcss");
const WatchExternalFilesPlugin = require("webpack-watch-files-plugin").default;
const Encore = require('@symfony/webpack-encore');
const tailwindcss = require('tailwindcss');
const WatchExternalFilesPlugin = require('webpack-watch-files-plugin').default;

const watchFiles = [
"./../../core/src/templates/**/*.html.twig",
"./../../core/src/templates/*.html.twig",
"./../../admin/src/templates/*.html.twig",
"./../../skeleton/templates/pushword.piedweb.com/*.html.twig",
"./../../skeleton/templates/pushword.piedweb.com/**/*.html.twig",
"./../content/*.md",
"./*.js",
"./../content/**/*.md",
"./../../../docs/*.html",
"./../../../docs/**/*.html",
'./../../core/src/templates/**/*.html.twig',
'./../../core/src/templates/*.html.twig',
'./../../admin/src/templates/*.html.twig',
'./../../skeleton/templates/pushword.piedweb.com/*.html.twig',
'./../../skeleton/templates/pushword.piedweb.com/**/*.html.twig',
'./../content/*.md',
'./*.js',
'./../content/**/*.md',
'./../../../docs/*.html',
'./../../../docs/**/*.html',
];

var tailwindConfig = require("./tailwind.config.js");
tailwindConfig.purge = watchFiles;
var tailwindConfig = require('./tailwind.config.js');
tailwindConfig.content = watchFiles;

Encore.setOutputPath("./../../skeleton/public/assets/")
.setPublicPath("/assets")
Encore.setOutputPath('./../../skeleton/public/assets/')
.setPublicPath('/assets')
.cleanupOutputBeforeBuild()
.enableSassLoader()
.enableSourceMaps(false)
Expand All @@ -31,20 +31,24 @@ Encore.setOutputPath("./../../skeleton/public/assets/")
)
.enablePostCssLoader((options) => {
options.postcssOptions = {
plugins: [require("postcss-import"), tailwindcss(tailwindConfig), require("autoprefixer")],
plugins: [
require('postcss-import'),
tailwindcss(tailwindConfig),
require('autoprefixer'),
],
};
})
.disableSingleRuntimeChunk()
.copyFiles({
from: "./",
to: "[name].[ext]",
from: './',
to: '[name].[ext]',
pattern: /logo.svg$/,
})
.copyFiles({
from: "./favicons",
to: "favicons/[name].[ext]",
from: './favicons',
to: 'favicons/[name].[ext]',
})
.addEntry("app.min", "./app.js")
.addStyleEntry("tw.min", "./app.css");
.addEntry('app.min', './app.js')
.addStyleEntry('tw.min', './app.css');

module.exports = Encore.getWebpackConfig();
2 changes: 1 addition & 1 deletion packages/docs/content/homepage.md
Expand Up @@ -9,7 +9,7 @@ prose: "max-w-screen-sm prose-sm md:prose-lg mx-auto p-3 prose dark:prose-light"

<div class="flex flex-row max-w-screen-lg mx-auto mb-6">

<div class="pr-6 -mt-3" markdown=1>
<div class="p-3 pr-6 -mt-3" markdown=1>

Puswhord is a PHP <strong>CMS</strong> to <strong>rapidly</strong> create, manage and maintain <strong>extandable Website(s)</strong>.

Expand Down
13 changes: 13 additions & 0 deletions packages/skeleton/media/editorjs.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions packages/skeleton/media/sonata.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/skeleton/media/symfony.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/skeleton/public/assets/app.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/skeleton/public/assets/tw.min.css

Large diffs are not rendered by default.

Expand Up @@ -38,8 +38,8 @@

</div>
{% else %}
<div class="{{ page.slug == 'homepage' ? 'max-w-screen-lg prose-lg mx-auto' : 'max-w-3xl' }} p-3 prose dark:prose-light">
<h1>{{ pw(page).h1|raw }}</h1>
<div class="{{ page.slug == 'homepage' ? 'prose-lg max-w-none' : 'max-w-3xl p-3' }} prose dark:prose-light">
<h1 class="max-w-screen-lg mx-auto p-3">{{ pw(page).h1|raw }}</h1>
{{ pw(page).mainContent.chapeau|raw }}
{{ pw(page).mainContent.body|raw }}
</div>
Expand Down
Expand Up @@ -10,7 +10,7 @@
</a>
</span>
<div class="flex flex-row flex-1 mx-3 md:mx-6">
<input type="text" id="search" placeholder="Search" class="w-20 px-2 py-1 text-xl border-2 rounded rounded-r-none outline-none border-gray-600 bg-gray-600 md:rounded-l md:w-full focus:w-60 md:focus:w-full focus:border-gray-200 dark:bg-gray-700">
<input type="text" id="search" placeholder="Search" class="w-20 px-2 py-1 text-xl border-2 rounded rounded-r-none outline-none border-gray-200 bg-gray-50 md:rounded-l md:w-full focus:w-60 md:focus:w-full focus:border-gray-200 dark:bg-gray-700">
<button class="px-4 py-2 font-bold bg-white rounded-r text-gray-800 md:block hover:bg-gray-200" onclick="document.querySelector('#search').focus()">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
Expand Down
Binary file modified packages/skeleton/var/app.db
Binary file not shown.

0 comments on commit 07d15f5

Please sign in to comment.