diff --git a/docs/config.php b/docs/config.php index 2c419c38..47799aea 100644 --- a/docs/config.php +++ b/docs/config.php @@ -29,6 +29,6 @@ } }, 'url' => function ($page, $path) { - return Str::startsWith($path, 'http') ? $path : '/'.trimPath($path); + return Str::startsWith($path, 'http') ? $path : '/' . trimPath($path); }, ]; diff --git a/docs/listeners/GenerateSitemap.php b/docs/listeners/GenerateSitemap.php index e983eae6..5b5a06e5 100644 --- a/docs/listeners/GenerateSitemap.php +++ b/docs/listeners/GenerateSitemap.php @@ -20,19 +20,19 @@ public function handle(Jigsaw $jigsaw) { $baseUrl = $jigsaw->getConfig('baseUrl'); - if (! $baseUrl) { + if (!$baseUrl) { echo "\nTo generate a sitemap.xml file, please specify a 'baseUrl' in config.php.\n\n"; return; } - $sitemap = new Sitemap($jigsaw->getDestinationPath().'/sitemap.xml'); + $sitemap = new Sitemap($jigsaw->getDestinationPath() . '/sitemap.xml'); collect($jigsaw->getOutputPaths()) ->reject(function ($path) { return $this->isExcluded($path); })->each(function ($path) use ($baseUrl, $sitemap) { - $sitemap->addItem(rtrim($baseUrl, '/').$path, time(), Sitemap::DAILY); + $sitemap->addItem(rtrim($baseUrl, '/') . $path, time(), Sitemap::DAILY); }); $sitemap->write(); diff --git a/docs/tailwind.config.js b/docs/tailwind.config.js index 5ddf59aa..f655870f 100644 --- a/docs/tailwind.config.js +++ b/docs/tailwind.config.js @@ -1,76 +1,76 @@ module.exports = { - purge: { - content: [ - 'source/**/*.html', - 'source/**/*.md', - 'source/**/*.js', - 'source/**/*.php', - 'source/**/*.vue', - ], - options: { - whitelist: [ - /language/, - /hljs/, - /algolia/, - ], - }, + purge: { + content: [ + 'source/**/*.html', + 'source/**/*.md', + 'source/**/*.js', + 'source/**/*.php', + 'source/**/*.vue', + ], + options: { + whitelist: [ + /language/, + /hljs/, + /algolia/, + ], }, - theme: { - extend: { - fontFamily: { - sans: [ - 'Nunito Sans' - ], - mono: [ - 'monospace', - ], - }, - lineHeight: { - normal: '1.6', - loose: '1.75', - }, - maxWidth: { - none: 'none', - '7xl': '80rem', - '8xl': '88rem' - }, - spacing: { - '7': '1.75rem', - '9': '2.25rem' - }, - boxShadow: { - 'lg': '0 -1px 27px 0 rgba(0, 0, 0, 0.04), 0 4px 15px 0 rgba(0, 0, 0, 0.08)', - } - }, - fontSize: { - 'xs': '.8rem', - 'sm': '.925rem', - 'base': '1rem', - 'lg': '1.125rem', - 'xl': '1.25rem', - '2xl': '1.5rem', - '3xl': '1.75rem', - '4xl': '2.125rem', - '5xl': '2.625rem', - '6xl': '10rem', - }, + }, + theme: { + extend: { + fontFamily: { + sans: [ + 'Nunito Sans' + ], + mono: [ + 'monospace', + ], + }, + lineHeight: { + normal: '1.6', + loose: '1.75', + }, + maxWidth: { + none: 'none', + '7xl': '80rem', + '8xl': '88rem' + }, + spacing: { + '7': '1.75rem', + '9': '2.25rem' + }, + boxShadow: { + 'lg': '0 -1px 27px 0 rgba(0, 0, 0, 0.04), 0 4px 15px 0 rgba(0, 0, 0, 0.08)', + } }, - variants: { - borderRadius: ['responsive', 'focus'], - borderWidth: ['responsive', 'active', 'focus'], - width: ['responsive', 'focus'] + fontSize: { + 'xs': '.8rem', + 'sm': '.925rem', + 'base': '1rem', + 'lg': '1.125rem', + 'xl': '1.25rem', + '2xl': '1.5rem', + '3xl': '1.75rem', + '4xl': '2.125rem', + '5xl': '2.625rem', + '6xl': '10rem', }, - plugins: [ + }, + variants: { + borderRadius: ['responsive', 'focus'], + borderWidth: ['responsive', 'active', 'focus'], + width: ['responsive', 'focus'] + }, + plugins: [ function ({ addUtilities }) { - const newUtilities = { - '.transition-fast': { - transition: 'all .2s ease-out', - }, - '.transition': { - transition: 'all .5s ease-out', - }, - } - addUtilities(newUtilities) + const newUtilities = { + '.transition-fast': { + transition: 'all .2s ease-out', + }, + '.transition': { + transition: 'all .5s ease-out', + }, + } + addUtilities(newUtilities) } - ] + ] }