Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
109bddb
Initial Commit
emmadesilva Mar 14, 2022
a2762c9
Set App Name
emmadesilva Mar 14, 2022
be40b13
Add the View Component
emmadesilva Mar 14, 2022
d50ff9a
Add package settings to composer
emmadesilva Mar 14, 2022
9bb146d
Create the CreatesDefaultDirectories Action
emmadesilva Mar 14, 2022
3076ab1
Create an array to front matter converter
emmadesilva Mar 14, 2022
f94e132
Update .gitignores
emmadesilva Mar 14, 2022
ca5c6c7
Action to create a Markdown post file
emmadesilva Mar 14, 2022
8e7ec06
Command to interactively scaffold Markdown posts
emmadesilva Mar 14, 2022
52f91fb
Remove concatenation remnant with no effect
emmadesilva Mar 14, 2022
39bf414
Create the test for the make post command
emmadesilva Mar 14, 2022
332b851
Add @todo
emmadesilva Mar 14, 2022
f372fad
Add class that contains Front Matter and Markdown
emmadesilva Mar 14, 2022
07eaf8a
Create rudimentary file parser
emmadesilva Mar 14, 2022
65843d9
Create the MarkdownPostParser Test
emmadesilva Mar 14, 2022
827ce44
Add the slug to the Post model
emmadesilva Mar 14, 2022
61b9d2f
Add _site/posts subdirectory to array
emmadesilva Mar 14, 2022
f4ad9d6
Add assertions for the slug
emmadesilva Mar 14, 2022
13d6fa6
Fix bug where trailing whitespace was included
emmadesilva Mar 14, 2022
c3a64aa
Create the basic frontend components
emmadesilva Mar 14, 2022
b967ae0
Create the basic page builder
emmadesilva Mar 14, 2022
0babf63
Create the Markdown Converter
emmadesilva Mar 14, 2022
300e06f
Add Torchlight support
emmadesilva Mar 14, 2022
75b422b
Move Class into Models namespace
emmadesilva Mar 14, 2022
7234767
Create action to get array of all markdown posts
emmadesilva Mar 14, 2022
683ab30
Make internal methods private
emmadesilva Mar 14, 2022
339c590
Create the static site build command
emmadesilva Mar 14, 2022
c04d4c7
Add support for custom blade pages
emmadesilva Mar 15, 2022
1279d6e
Update .gitignore
emmadesilva Mar 15, 2022
4e8a0a2
Add support for Markdown Pages
emmadesilva Mar 15, 2022
00c8fb8
Deprecate action
emmadesilva Mar 15, 2022
2e37047
Create the basic BuildStaticSiteCommand Test
emmadesilva Mar 15, 2022
83f0391
Add the set up and tear down methods
emmadesilva Mar 15, 2022
97683c1
Clean up the test code
emmadesilva Mar 15, 2022
7868e13
Refactor test to use a stub file
emmadesilva Mar 15, 2022
8297198
Minor formatting and code cleanup
emmadesilva Mar 15, 2022
5c44e7c
Add PSR2 Code Standard Ruleset
emmadesilva Mar 15, 2022
8a076be
Run PHPCBF to fix PSR2 formatting
emmadesilva Mar 15, 2022
a243834
Rename app to Hyde
emmadesilva Mar 15, 2022
0294df4
Add the readme
emmadesilva Mar 15, 2022
098ffe0
Create the Hyde config file
emmadesilva Mar 15, 2022
1d06347
Add the Logo
emmadesilva Mar 15, 2022
c0bc119
Add the index blade file and command message
emmadesilva Mar 15, 2022
964a391
Add the post abstract/description component
emmadesilva Mar 15, 2022
dd72c8c
Add method to get a collection of all post objects
emmadesilva Mar 15, 2022
603cbd7
Add the latest posts
emmadesilva Mar 15, 2022
3266a7d
Switch to https for schema definition
emmadesilva Mar 15, 2022
be3637b
Add basic timer
emmadesilva Mar 15, 2022
a3e43b4
Create an automatic navigation menu (WIP)
emmadesilva Mar 15, 2022
830202a
Add package.json
emmadesilva Mar 15, 2022
a10688d
Add Browsersync
emmadesilva Mar 15, 2022
7663587
Add experimental support for autobuilding
emmadesilva Mar 15, 2022
9e93c44
Create a global helpers file
emmadesilva Mar 15, 2022
6beec0f
Rename page
emmadesilva Mar 15, 2022
bfb2ce6
Add blade files to watch script
emmadesilva Mar 15, 2022
bf7ea1e
Add SASS support
emmadesilva Mar 15, 2022
a470c0d
Make the article information layout more fluent
emmadesilva Mar 15, 2022
d06e6d1
Add the Markdown Converter to posts
emmadesilva Mar 16, 2022
4d628b2
Add sass script
emmadesilva Mar 16, 2022
3fc8e03
Fix bug where front matter title was not showing
emmadesilva Mar 16, 2022
6d1f3b0
Create general interface for Hyde services
emmadesilva Mar 16, 2022
2e00067
Add Torchlight styles
emmadesilva Mar 16, 2022
6c162e7
Add Tailwind
emmadesilva Mar 16, 2022
8993b12
Add Concurrently
emmadesilva Mar 16, 2022
6b8bddd
Add tailwind styles to the front page
emmadesilva Mar 16, 2022
90fa181
Add Tailwind styles to article
emmadesilva Mar 16, 2022
a5b6500
Add styles to markdown page
emmadesilva Mar 16, 2022
56e9c39
Add style to differentiate active navbar link
emmadesilva Mar 16, 2022
51f5c34
Add title and priority helpers
emmadesilva Mar 16, 2022
c584db0
Position navbar absolute
emmadesilva Mar 16, 2022
4ba25c1
Remove schedule command and add font
emmadesilva Mar 17, 2022
9013283
Move font file to src
emmadesilva Mar 17, 2022
c76cab5
Move styles to src
emmadesilva Mar 17, 2022
7d7e042
Move components into component directory
emmadesilva Mar 17, 2022
684d8bb
Add media directory
emmadesilva Mar 17, 2022
d07d22c
Add inline documentation
emmadesilva Mar 17, 2022
0daac98
Add Laradocgen features
emmadesilva Mar 17, 2022
4403e0a
Create the Collection Service Class
emmadesilva Mar 17, 2022
ceb8268
Use the collection service to get the slug lists
emmadesilva Mar 17, 2022
3468c12
Add verbose output option
emmadesilva Mar 17, 2022
446506f
Implement the page titles
emmadesilva Mar 17, 2022
2e495b6
Get the title automatically
emmadesilva Mar 17, 2022
e6c1647
Add the base service class
emmadesilva Mar 17, 2022
388bff2
Add the app name set in config
emmadesilva Mar 17, 2022
963f7f2
Create the sidebar items for the doc pages
emmadesilva Mar 17, 2022
14cb2b3
Add the documentation views
emmadesilva Mar 17, 2022
05ce8de
Update inline code styles
emmadesilva Mar 17, 2022
9505e74
Remove the default navigation menu on doc pages
emmadesilva Mar 17, 2022
4a7f8d5
Make the documentation layout responsive
emmadesilva Mar 17, 2022
99ef539
Move logic to method
emmadesilva Mar 17, 2022
cc487f7
Add documentation sidebar link sorting
emmadesilva Mar 17, 2022
ff9e78e
Add option to pretty print html and prod build script
emmadesilva Mar 17, 2022
8f57592
Add dev build command
emmadesilva Mar 17, 2022
0537892
Remove index page from sidebar
emmadesilva Mar 17, 2022
624daad
Update demo pages
emmadesilva Mar 18, 2022
98ce65e
Allow active navigation link to be clickable
emmadesilva Mar 18, 2022
bbf710b
Update default codeblock font family
emmadesilva Mar 18, 2022
7761096
Clarify component names
emmadesilva Mar 18, 2022
2491c8d
Update installation guide
emmadesilva Mar 18, 2022
a9b04d6
Update the blockquote style
emmadesilva Mar 18, 2022
ceb4be2
Format to PSR2
emmadesilva Mar 18, 2022
9e852c9
Update blockquote style
emmadesilva Mar 18, 2022
ee337fc
Non-breaking code formatting
emmadesilva Mar 18, 2022
f37b412
Add PHPDocs
emmadesilva Mar 18, 2022
5c654f4
Tweak blockquote background color to match <code>
emmadesilva Mar 18, 2022
4aa9806
Fix typo and switch to HTTPS
emmadesilva Mar 18, 2022
0bfc054
Add notice if the styles do not exist
emmadesilva Mar 18, 2022
ece7c7d
Add the features helper for easy configuration
emmadesilva Mar 18, 2022
c1f0be3
Update Readme to be up to date and add more content
emmadesilva Mar 18, 2022
8404361
Add media note to known issues
emmadesilva Mar 18, 2022
7b85ea7
Fix missing file error
emmadesilva Mar 18, 2022
ccbb18f
Add debug command and installer helper
emmadesilva Mar 18, 2022
e400268
Update gitignore
emmadesilva Mar 18, 2022
8d9e4fa
Remove installer
emmadesilva Mar 18, 2022
5fd2188
Update readme about manually deleting old files
emmadesilva Mar 18, 2022
44a7161
Add exception if front matter is missing
emmadesilva Mar 18, 2022
b9aa9d9
Update Readme
emmadesilva Mar 18, 2022
5852270
Delete _pages directory
emmadesilva Mar 18, 2022
6c73f50
Remove build files from gitignore
emmadesilva Mar 18, 2022
1ba63b3
Add information about the config file
emmadesilva Mar 18, 2022
38bcb4f
Merge pull request #1 from hydephp/master
emmadesilva Mar 18, 2022
ed3ff7c
Update composer with new repo settings
emmadesilva Mar 18, 2022
7c72ffd
Merge branch '1.x' of github.com:hydephp/framework into 1.x
emmadesilva Mar 18, 2022
621baa2
Revert "Add information about the config file"
emmadesilva Mar 18, 2022
31a7a09
Revert "Remove build files from gitignore"
emmadesilva Mar 18, 2022
8c824e2
Merge branches
emmadesilva Mar 18, 2022
6481c24
Compile the frontend assets
emmadesilva Mar 18, 2022
a55221a
Update package.json
emmadesilva Mar 18, 2022
f379181
Remove project type
Mar 18, 2022
039da08
Update README.md
emmadesilva Mar 18, 2022
47298bc
Merge pull request #2 from hydephp/1.x
emmadesilva Mar 18, 2022
a0cd58a
Revert "Remove project type"
emmadesilva Mar 18, 2022
8a574a4
Update repo
emmadesilva Mar 18, 2022
5a6f7ad
Create codeql-analysis.yml
Mar 18, 2022
75a5549
Create SECURITY.md
Mar 18, 2022
aa9c1d7
Update README.md
Mar 18, 2022
785a450
Update installation instructions
emmadesilva Mar 18, 2022
c0cbf83
Update composer.json
Mar 19, 2022
40a9e06
Update installation command
emmadesilva Mar 19, 2022
581bccd
Update description
emmadesilva Mar 19, 2022
819fe72
Create tests.yml
Mar 19, 2022
43c98b9
Update tests.yml
Mar 19, 2022
b3bea59
Update README.md
Mar 19, 2022
196fb7c
Update README.md
Mar 19, 2022
8ec741f
Inline the scripts
emmadesilva Mar 19, 2022
7e878b6
Merge branch 'master' of github.com:hydephp/framework
emmadesilva Mar 19, 2022
3970d57
Add command for making arbitrary navigation links
emmadesilva Mar 19, 2022
7e9af42
Fix #6, handle missing docs index
emmadesilva Mar 19, 2022
ad640de
Patches #12, Sev2 Bug: Compiler not using Markdown
emmadesilva Mar 19, 2022
74b137c
Abort if required bladePages feature is disabled
emmadesilva Mar 19, 2022
a5e803c
Disable style message when running NPM
emmadesilva Mar 19, 2022
a414d7b
Add Torchlight class if enabled to Markdown Pages
emmadesilva Mar 19, 2022
3df4f38
Fix grammar
emmadesilva Mar 19, 2022
20b8594
Add the _docs directory to the watch script
emmadesilva Mar 19, 2022
f152c9d
Fix #15, remove redundant values from created file
emmadesilva Mar 19, 2022
79fd0fd
Merge branch 'master' of github.com:hydephp/framework
emmadesilva Mar 19, 2022
85ab446
Update failing tests to handle the text change
emmadesilva Mar 19, 2022
c731b07
Create LICENSE.md
emmadesilva Mar 19, 2022
5b91f67
Add Roadmap
emmadesilva Mar 19, 2022
0ad7050
Add Shields.io Badges
emmadesilva Mar 19, 2022
d5af76e
Remove static site build from prod/dev scripts
emmadesilva Mar 19, 2022
2b52ee7
Deprecate the command, see issue #16
emmadesilva Mar 19, 2022
36b9716
Streamline the Readme
emmadesilva Mar 19, 2022
bc0a61d
Remove redundant file (moved to the docs)
emmadesilva Mar 19, 2022
77fed2b
Create the validation framework
emmadesilva Mar 19, 2022
035e68a
Add command to create validators
emmadesilva Mar 20, 2022
9b27679
Add validators
emmadesilva Mar 20, 2022
b6b35ad
Add test to check that frontend assets exist
emmadesilva Mar 20, 2022
e0f988f
Clean up build command by moving check to validation
emmadesilva Mar 20, 2022
f50906a
Handle failures gracefully
emmadesilva Mar 20, 2022
2c7b8b0
Seperate the checks
emmadesilva Mar 20, 2022
34d7a6a
Merge pull request #17 from hydephp/validator
emmadesilva Mar 20, 2022
38b905f
Create CHANGELOG.md
emmadesilva Mar 20, 2022
5416fd2
Add the stubs
emmadesilva Mar 20, 2022
a732c31
Add the validator test
emmadesilva Mar 20, 2022
b92822d
Add the publishing command
emmadesilva Mar 20, 2022
9284a5a
Add tests
emmadesilva Mar 20, 2022
eb2b375
Merge pull request #18 from hydephp/14-todo-add-default-page
emmadesilva Mar 20, 2022
3072075
Add the Torchlight badge automatically
emmadesilva Mar 20, 2022
abd9929
Add the config setting check
emmadesilva Mar 20, 2022
c038239
Merge pull request #19 from hydephp/8-feature-implement-the-torchligh…
emmadesilva Mar 20, 2022
57a8e87
Check for the app env in the .env file
emmadesilva Mar 20, 2022
97cdd83
Merge pull request #20 from hydephp/13-todo-move-app-environment-sett…
emmadesilva Mar 20, 2022
c5b63ac
Change the content directory for Tailwind to Blade
emmadesilva Mar 20, 2022
93406f2
Merge branch 'master' of github.com:hydephp/framework
emmadesilva Mar 20, 2022
7113c8b
Improve the front matter parser to fix #21
emmadesilva Mar 20, 2022
dcc2ce9
Merge pull request #23 from hydephp/21-bug-front-matter-parser-not-st…
emmadesilva Mar 20, 2022
32c5d37
Fix bug #9, documentation sidebar ordering issue
emmadesilva Mar 20, 2022
5e3518c
Fix #25, automatically add link to docs
emmadesilva Mar 20, 2022
8f3f5df
Add a navigation menu blacklist, fixes #26
emmadesilva Mar 20, 2022
1007d0d
Implement #16, add custom navigation links
emmadesilva Mar 20, 2022
3e72938
Remove the deprecated, and now, unneeded command.
emmadesilva Mar 20, 2022
828b957
Merge pull request #27 from hydephp/navigation-menu-fixes
emmadesilva Mar 20, 2022
025ed8e
Fix bug #22 caused by a simple typo
emmadesilva Mar 20, 2022
da9c0fc
Merge pull request #28 from hydephp/22-bug-posts-in-feed-are-not-list…
emmadesilva Mar 20, 2022
9619821
Add support for images
emmadesilva Mar 20, 2022
1f9630e
Merge pull request #29 from hydephp/24-feature-add-image-support
emmadesilva Mar 20, 2022
9439734
Clean up readme
emmadesilva Mar 20, 2022
8dff52c
Add responsive navigation
emmadesilva Mar 21, 2022
4edfe16
Merge pull request #30 from hydephp/7-feature-make-the-navigation-men…
emmadesilva Mar 21, 2022
ffb51c4
Remove margin from the old navigation menu
emmadesilva Mar 21, 2022
09813cf
Adds a customizable footer
emmadesilva Mar 21, 2022
f4684f2
Merge pull request #31 from hydephp/customizable-footer
emmadesilva Mar 21, 2022
09a7e64
Clarify comments in configuration file
emmadesilva Mar 21, 2022
fdb68d5
Compile frontend assets
emmadesilva Mar 21, 2022
b1f5d15
Remove default footer from docs
emmadesilva Mar 21, 2022
32d4a2f
Add "Customizing your Site"
emmadesilva Mar 21, 2022
a42aac4
Merge branch 'master' of https://github.com/hydephp/hyde into hyde-up…
emmadesilva Mar 21, 2022
5169efd
Update and build the frontend
emmadesilva Mar 21, 2022
a32d6c8
Update the sidebar order
emmadesilva Mar 21, 2022
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
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '20 2 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
laravel-tests:
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
run: php hyde test
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

All notable changes to `Hyde` will be documented in this file.

Once the package is tested to ensure it is stable enough for production semantic versioning (SemVer) will be used.
Until then there may be breaking changes on the Master branch.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Caen De Silva

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Security Policy

## Supported Versions

| Version | Supported | Notes |
| ------- | ------------------ | ---- |
| 0.1.0-Pre | :warning: | Pre-release |
| 0.1.0 | :x: | Alpha-release |

:warning: Pre-releases are not suited for production.

<!--
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: | -->


## Reporting a Vulnerability

If you discover a security vulnerability within this package, please send an e-mail to the creator, Caen De Silva, via caen@desilva.se.

All security vulnerabilities will be promptly addressed.
136 changes: 136 additions & 0 deletions _docs/customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Customizing your Site

<p class="lead">
Hyde favours <a href="https://en.wikipedia.org/wiki/Convention_over_configuration">"Convention over Configuration"</a>
and thus comes preconfigured with sensible defaults. However, Hyde also strives to be modular and endlessly customizable hackable if you need it. This page guides you through the endless options available!
</p>

## Main Configuration File
The main configuration file is in `config/hyde.php`. The [config file](https://github.com/hydephp/hyde/blob/master/config/hyde.php) is fully documented so I recommend you take a look to see all the options.

In this config file, you can customize the site name, what modules to enable, and programmatically customize the navigation menu and documentation sidebar.

Here are a few examples of the config options.

### Modules
With a concept directly inspired by [Laravel Jetstream](https://jetstream.laravel.com/), this setting allows you to toggle various modules.
```php
// torchlight! {"lineNumbers": false}
'features' => [
Features::blogPosts(),
Features::bladePages(),
Features::markdownPages(),
// Features::documentationPages(),
],
```

### Footer
The footer can be customized using Markdown, and even disabled completely.

```php
// torchlight! {"lineNumbers": false}
'footer' => [
'enabled' => true,
'markdown' => 'Site built with [HydePHP](https://github.com/hydephp/hyde).'
],
```

### Navigation Menu & Sidebar
One of my (the author's) favourite features with Hyde is its automatic navigation menu and documentation sidebar generator.

#### How it works:
The sidebar works by creating a list of all the documentation pages.

The navigation menu is a bit more sophisticated, it adds all the top-level Blade and Markdown pages. It also adds an automatic link to the docs if there is an `index.md` or `readme.md` in the `_docs` directory.

#### Reordering Items
Sadly, Hyde is not intelligent enough to determine what order items should be in (blame Dr Jekyll for this), so you will probably want to set a custom order.

Reordering items in the documentation sidebar is as easy as can be. In the hyde config, there is an array just for this. When the sidebar is generated it looks through this config array. If a slug is found here they will get the priority according to their position in the list. If a page does not exist in the list they get the priority 999, which puts them last.

Let's see an example:
```php
// torchlight! {"lineNumbers": false}
// This is the default values in the config. It puts the readme.md first in order.
'documentationPageOrder' => [
'readme', // This is the first entry, so it gets the priority 0
'installation', // This gets priority 1
'getting-started', // And this gets priority 2
// Any other pages not listed will get priority 999
]
```

> Navigation menu items will be ordered in the same way in a coming update, but for now, they can be reordered by overriding them which you can learn in the next section.

#### Adding Custom Navigation Menu Links
> Until the navigation link order is implemented, you can use this feature to reorder navigation menu items.

The links are added in the config/hyde.php file, and the syntax for adding custom links is documented in the config. Here are some examples:

```php
// torchlight! {"lineNumbers": false}
// External link
[
'title' => 'GitHub',
'destination' => 'https://github.com/hydephp/hyde',
'priority' => 1200,
],

// Internal link (Hyde automatically resolves relative paths)
[
'title' => 'Featured Blog Post',
'slug' => 'posts/hello-world',
// The 'priority' is not required.
]
```

#### Removing Items (Blacklist)

Sometimes, especially if you have a lot of pages, you may want to prevent links from showing up in the main navigation menu. To remove items from being automatically added, simply add the slug to the blacklist. As you can see, the `404` page has already been filled in for you.

```php
'navigationMenuBlacklist' => [
'404'
],
```

> Tip: You can publish the included 404 page using `php hyde publish:404`!

## Blade Views
Hyde uses the Laravel templating system called Blade. Most parts have been extracted into components to be customized easily. Here is an overview.

> Before editing Blade views you should familiarize yourself with how they work in the official documentation https://laravel.com/docs/9.x/blade.


All blade views are located in the `resources/views` directory.
### Directory Overview
```bash
resources/views/ # [tl! reindex(null)]
├── components # Contains components to be included in parent layouts
│ ├── article-excerpt.blade.php
│ ├── docs # Contains components specific to the Documentation pages
│ │ ├── content.blade.php
│ │ ├── navigation.blade.php
│ │ ├── sidebar-footer.blade.php
│ │ ├── sidebar-header.blade.php
│ │ ├── sidebar-toggle.blade.php
│ │ └── sidebar.blade.php
│ └── post # Contains components specific to the Blog post pages
│ ├── article.blade.php
│ ├── author.blade.php
│ ├── category.blade.php
│ ├── datePublished.blade.php
│ └── description.blade.php
├── layouts # Contains components used for layouts
│ ├── app.blade.php
│ ├── footer.blade.php
│ ├── meta.blade.php
│ └── navigation.blade.php
├── pages # Contains custom Blade pages*
│ └── index.blade.php
├── page.blade.php
├── docs.blade.php
└── post.blade.php
```

*See [Getting Started](getting-started.html#hyde-pages-using-blade) for more details on creating custom Blade pages.
2 changes: 0 additions & 2 deletions _site/docs.html

This file was deleted.

69 changes: 67 additions & 2 deletions _site/docs/console-commands.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<!-- Include any extra tags to include in the <head> section -->
</head>
<body id="app" class="overflow-x-hidden">
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden">
<section id="content">
<nav
id="documentation-navigation"
Expand Down Expand Up @@ -111,6 +111,13 @@ <h2 class="font-bold opacity-75 hover:opacity-100 w-fit">
>Console Commands</a
>
</li>
<li class="py-2 list-item">
<a
href="customization.html"
class="hover:text-indigo-500"
>Customization</a
>
</li>
</ul>
</nav>
<footer class="p-4 mt-auto border-t">
Expand Down Expand Up @@ -288,11 +295,69 @@ <h2>
>http://localhost:3000/</a
>.
</p>
<p class="mt-8">
<i>
Syntax highlighting by
<a
href="https://torchlight.dev/"
rel="noopener nofollow"
>Torchlight.dev</a
>
</i>
</p>
</div>
</article>
</main>

<script defer src="../media/docs.js"></script>
<script>
var sidebarOpen = screen.width >= 768;

const sidebar = document.getElementById(
"documentation-sidebar"
);
const main = document.getElementById("documentation-content");
const backdrop = document.getElementById("sidebar-backdrop");

const toggleButtons = document.querySelectorAll(
".sidebar-button-wrapper"
);

function toggleSidebar() {
if (sidebarOpen) {
hideSidebar();
} else {
showSidebar();
}
}

function showSidebar() {
sidebar.classList.remove("hidden");
sidebar.classList.add("flex");
backdrop.classList.remove("hidden");
document.getElementById("app").style.overflow = "hidden";

toggleButtons.forEach((button) => {
button.classList.remove("open");
button.classList.add("closed");
});

sidebarOpen = true;
}

function hideSidebar() {
sidebar.classList.add("hidden");
sidebar.classList.remove("flex");
backdrop.classList.add("hidden");
document.getElementById("app").style.overflow = null;

toggleButtons.forEach((button) => {
button.classList.add("open");
button.classList.remove("closed");
});

sidebarOpen = false;
}
</script>
<div
id="sidebar-backdrop"
class="hidden"
Expand Down
Loading