Skip to content

Commit b9ddcd5

Browse files
authoredMar 13, 2023
Merge pull request #1270 from hydephp/format-markdown-documents
Format Markdown documents
2 parents e144972 + 87cc9b5 commit b9ddcd5

File tree

15 files changed

+169
-44
lines changed

15 files changed

+169
-44
lines changed
 

‎CHANGELOG.md

+126-27
Large diffs are not rendered by default.

‎CONTRIBUTING.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ Contributions are **welcome** and will be fully **credited**.
44

55
Please read and understand the contribution guide before creating an issue or pull request. This document is a living standard that may be updated when needed.
66

7+
78
## Resources
89

910
If you're new to HydePHP and are looking to contribute, it may be helpful to learn how the ecosystem and core development works.
1011
It's thus highly advised you visit our [Developer Resources](https://hydephp.com/community) to learn how HydePHP is structured.
1112

13+
1214
## Etiquette
1315

1416
This project is open source, and as such, the maintainers give their free time to build and maintain the source code
@@ -21,6 +23,7 @@ world that developers are civilized and selfless people.
2123
It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
2224
quality to benefit the project. Many developers have different skill sets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
2325

26+
2427
## Viability
2528

2629
When requesting or submitting new features, first consider whether they might be useful to others. Open
@@ -51,13 +54,15 @@ Before submitting a pull request:
5154
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
5255
- Check the feature is a viable for the project (see above)
5356

57+
5458
## How-to
5559

5660
HydePHP development is made in the HydePHP monorepo found at https://github.com/hydephp/develop.
5761
To get started, you will need to clone the repository, and run `composer install`. You will then be able to make changes to the packages found in the `packages/` sub-directories.
5862

5963
Once you've made and commited your changes, submit a pull request to the same repository, and explain your changes and how they improve the codebase.
6064

65+
6166
## Requirements
6267

6368
If the project maintainer has any additional requirements, you will find them listed here.

‎README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
> This repository holds the source code for the HydePHP core components. If you want to create a website with Hyde, check out the [HydePHP/Hyde repository](https://github.com/hydephp/hyde).
2828
29+
2930
## Projects in this monorepo
3031

3132
[![Upcoming Documentation](https://img.shields.io/badge/-Upcoming%20Documentation-525252)](https://hydephp.github.io/develop/master/dev-docs/)
@@ -55,15 +56,12 @@ The two most important components are **Hyde** and **Framework**. We also use **
5556
| **UI Kit** | [packages/ui-kit](packages/ui-kit) | [hydephp/ui-kit](https://github.com/hydephp/ui-kit) | [hyde/ui-kit](https://packagist.org/packages/hyde/ui-kit) |
5657
| **HydeFront** | [packages/hydefront](packages/hydefront) | [hydephp/hydefront](https://github.com/hydephp/hydefront) | [npm@hydefront](https://www.npmjs.com/package/hydefront) |
5758

58-
5959
*The Hyde/Hyde project is stored in the monorepo root and works a bit differently from the others. Before pushing to the readonly repository, we apply persisted changes in the [`packages/hyde`](https://github.com/hydephp/develop/tree/master/packages/hyde) directory, then remove monorepo specific files.
6060

61-
6261
### How the monorepo works
6362

6463
Changes to HydePHP including some first-party packages are made here. The changes are then pushed to the `develop` or `master` branches of the readonly repositories seen in the table above.
6564

66-
6765
### Releases
6866

6967
The versioning between the Framework and Hyde packages are linked together Meaning that if Hyde get's a major release, so must Framework, and vice versa. To make this easier, we also publish major and minor releases in the monorepo. Patch releases are not published in the monorepo, and are instead handled by the individual packages.

‎packages/framework/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
[![Test Coverage](https://codecov.io/gh/hydephp/develop/branch/master/graph/badge.svg?token=G6N2161TOT)](https://codecov.io/gh/hydephp/develop)
99
[![Test Suite](https://github.com/hydephp/develop/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/hydephp/develop/actions/workflows/continuous-integration.yml)
1010

11+
1112
## About
13+
1214
HydePHP is a content-first Laravel-powered Static Site Builder that allows you to create static HTML pages, blog posts, and documentation sites using Markdown.
1315
Hyde is all about letting you get started quickly by giving you a full-featured frontend starter kit, while also giving you the power and freedom of doing things the way you want to.
1416

‎packages/framework/SECURITY.md

-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ These are the version ranges of HydePHP, and their support status. We follow [Se
1212
| < 0.8 | :x: | Alpha stage |
1313

1414

15-
<!--
16-
| 5.1.x | :white_check_mark: |
17-
| 5.0.x | :x: |
18-
| 4.0.x | :white_check_mark: |
19-
| < 4.0 | :x: | -->
20-
21-
2215
## Reporting a Vulnerability
2316

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

‎packages/framework/tests/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Hyde Testing
22

3-
The tests here cover the Hyde/Framework package. Note that they are intended to be run through the monorepo.
3+
The tests here cover the Hyde/Framework package. Note that they are intended to be run through the monorepo.

‎packages/hyde/README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# HydePHP - Elegant and Powerful Static Site Generator
22

3-
43
[![Latest Version on Packagist](https://img.shields.io/packagist/v/hyde/framework?include_prereleases)](https://packagist.org/packages/hyde/framework)
54
[![Total Downloads on Packagist](https://img.shields.io/packagist/dt/hyde/framework)](https://packagist.org/packages/hyde/framework)
65
[![License MIT](https://img.shields.io/github/license/hydephp/hyde) ](https://github.com/hydephp/hyde/blob/master/LICENSE.md)
@@ -11,12 +10,14 @@
1110
## Make static websites, blogs, and documentation pages with the tools you already know and love.
1211

1312
### About HydePHP
13+
1414
HydePHP is a content-first Laravel-powered console application that allows you to create static HTML pages, blog posts, and documentation sites,
1515
using your choice of Markdown and/or Blade.
1616

1717
Build sites in record-time with a full batteries-included TailwindCSS frontend that just works without any fuzz.
1818

1919
### Speed & simplicity first, full control when you need it.
20+
2021
Hyde is all about letting you get started quickly by giving you a full-featured frontend starter kit, while also giving you the power and freedom of doing things the way you want to.
2122

2223
Markdown purist? That's all you need. Blade artisan? Go for it.
@@ -25,35 +26,42 @@ You don't _need_ to customize anything. But you _can_ customize everything.
2526

2627
See the documentation and learn more at https://hydephp.com/docs/
2728

29+
2830
## Features
2931

3032
### Content Creation
33+
3134
- Create blog posts using Markdown and Front Matter.
3235
- Create documentation pages from plain Markdown, no front matter needed!
3336
- Create simple pages using Markdown, or create advanced ones using Laravel Blade.
3437
- You can scaffold blog posts and Markdown pages to automatically fill in the front matter.
3538
- You can also scaffold Blade pages to automatically use the default layout.
3639

3740
### Built-in Frontend
41+
3842
- Hyde comes with a TailwindCSS starter kit so you can start making content right away.
3943
- The starter kit is fully responsive, has a dark mode theme, and is customizable.
4044
- The frontend is accessible to screenreaders and rich with semantic HTML and microdata.
4145
- Hyde automatically chooses the right layout to use depending on the content being rendered.
4246
- Hyde also fills in and creates content like navigation menus and sidebars automatically.
4347

4448
### Easy Asset Managing
49+
4550
- The Hyde starter comes with [HydeFront](https://github.com/hydephp/hydefront/) to serve the base stylesheet and JavaScript through the jsDelivr CDN.
4651
- Hyde ships with precompiled and minified TailwindCSS styles in the app.css file, you can also load them through the CDN.
4752
- This means that all the styles you need are already installed. However, if you want to customize the Tailwind config, or if you add new Tailwind classes through Blade files, you can simply run the `npm run dev` command to recompile the styles using Laravel Mix.
4853

4954
### Customization
55+
5056
- You don't need to configure anything as Hyde is shipped with sensible defaults.
5157
- You can, however, customize nearly everything. Here are some examples:
5258
- All frontend components and page layouts are created with Blade so you
5359
can publish the vendor views, just like in Laravel.
5460
- Override many of the dynamic content features like the menus and footer.
5561

62+
5663
## Getting Started - High-level overview
64+
5765
> See [Installation Guide](https://hydephp.com/docs/master/installation.html) and [Getting Started](https://hydephp.com/docs/master/getting-started.html) for the full details.
5866
5967
It's a breeze to get started with Hyde. Create a new Hyde project using Composer:
@@ -70,6 +78,7 @@ When you're ready, run the build command to compile your static site which will
7078
php hyde build
7179
```
7280

81+
7382
## Resources
7483

7584
### Changelog
@@ -97,6 +106,7 @@ All vulnerabilities will be promptly addressed.
97106
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
98107

99108
### Attributions
109+
100110
> Please see the respective authors' repositories for their license files
101111
102112
- The Hyde core is built with [Laravel Zero](https://laravel-zero.com/) which is based on [Laravel](https://laravel.com/)

‎packages/hydefront/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![NPM Downloads](https://img.shields.io/npm/dm/hydefront)
55
[![Build & Push CI](https://github.com/hydephp/hydefront/actions/workflows/node.js.yml/badge.svg)](https://github.com/hydephp/hydefront/actions/workflows/node.js.yml)
66

7+
78
## About this repository
89

910
Contains the frontend assets for HydePHP.
@@ -18,14 +19,19 @@ Normally, this file is imported into the main.css file.
1819
- **App.css**:
1920
A compiled and minified file containing the TailwindCSS styles for a base Hyde installation. It includes the Hyde.css file. This file is identical to what one would get by running `npm run prod` in a new HydePHP project (which incidentally is exactly how this file is generated).
2021

22+
2123
## Usage
2224

2325
HydeFront is included with [HydePHP](https://github.com/hydephp/hyde) by default.
2426

27+
2528
## Links:
29+
2630
- GitHub https://github.com/hydephp/hydefront
2731
- NPM https://www.npmjs.com/package/hydefront
2832
- jsDelivr https://www.jsdelivr.com/package/npm/hydefront
2933

34+
3035
## Warranty:
36+
3137
HydeFront is not intended to be used for standalone projects and comes with no warranties. Changes in HydeFront are tied to those in the Hyde Framework and differing versions may be incompatible.

‎packages/realtime-compiler/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The source code for the HydePHP Realtime Compiler/Server. This package is includ
44

55
The package adds a `php hyde serve` command which exposes a web server on port `8080` which will compile the requested web page on the fly and serve it to the browser.
66

7+
78
## Supported Versions
89

910
This package is not intended to be used outside the HydePHP framework.

‎packages/realtime-compiler/SECURITY.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## Reporting a Vulnerability
44

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

87
All security vulnerabilities will be promptly addressed.

‎packages/testing/LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

‎packages/testing/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/hyde/testing.svg?style=flat-square)](https://packagist.org/packages/hyde/testing)
44
[![Total Downloads](https://img.shields.io/packagist/dt/hyde/testing.svg?style=flat-square)](https://packagist.org/packages/hyde/testing)
55

6-
76
Warning: This package should only be used as a dev-dependency, and never in production.
87

8+
99
## Installation
1010

1111
You can install the package via composer:
@@ -14,6 +14,7 @@ You can install the package via composer:
1414
composer require hyde/testing --dev
1515
```
1616

17+
1718
## Usage
1819

1920
This package is created for and intended to be used specifically with HydePHP. It will likely not work with other frameworks, and such usage is discouraged.
@@ -22,6 +23,7 @@ This package is created for and intended to be used specifically with HydePHP. I
2223
php hyde test
2324
```
2425

26+
2527
## Contributing
2628

2729
Please see the [hydephp/develop](https://github.com/hydephp/develop/issues) monorepo for details.
@@ -32,6 +34,7 @@ If you discover any security related issues, please email caen@desilva.se instea
3234

3335
There are no backwards compatibility guarantees other than what is implicitly offered through the HydePHP packages requiring this package.
3436

37+
3538
## License
3639

3740
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

‎packages/ui-kit/LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

‎packages/ui-kit/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@
33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/hyde/ui-kit.svg?style=flat-square)](https://packagist.org/packages/hyde/ui-kit)
44
[![Total Downloads](https://img.shields.io/packagist/dt/hyde/ui-kit.svg?style=flat-square)](https://packagist.org/packages/hyde/ui-kit)
55

6+
67
## About
78

89
The HydePHP UI Kit is a collection of minimalistic and un-opinionated TailwindCSS components for Laravel Blade,
910
indented to be used with HydePHP. Note that these components may require CSS classes not present in the bundled app.css
1011
file and that you may need to recompile the CSS file using the included Laravel Mix configuration.
1112

13+
1214
## Warning
1315

1416
The HydePHP UI Kit is still in development and is not yet ready for production use.
1517
All components including their names can and probably will be changed.
1618

1719
Versions in the 0.x range are considered unstable and may contain breaking changes.
1820

21+
1922
## Installation
2023

2124
You can install the package via composer:
@@ -26,6 +29,7 @@ composer require hyde/ui-kit
2629

2730
Since HydePHP already comes with several built-in views and templates, including a precompiled CSS file to get you started quickly, this package is not required to use HydePHP and is tailored to intermediate-to-advanced users, giving you an excellent productivity boost in kick-starting development of any custom Blade pages.
2831

32+
2933
## Usage
3034

3135
Once installed, the package service provider will automatically register the Blade components for you to use.
@@ -35,6 +39,7 @@ You might also need to recompile the CSS file using the Laravel Mix configuratio
3539

3640
You can see a list of all available components in the [documentation](https://hydephp.github.io/ui-kit/).
3741

42+
3843
## Contributing
3944

4045
Please see the [hydephp/develop](https://github.com/hydephp/develop/issues) monorepo for details.
@@ -45,6 +50,7 @@ If you discover any security related issues, please email caen@desilva.se instea
4550

4651
There are no backwards compatibility guarantees other than what is implicitly offered through the HydePHP packages requiring this package.
4752

53+
4854
## License
4955

5056
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

‎packages/ui-kit/docs/documentation.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ The HydePHP UI Kit is a collection of minimalistic and un-opinionated TailwindCS
44
indented to be used with HydePHP. Note that these components may require CSS classes not present in the bundled app.css
55
file and that you may need to recompile the CSS file using the included Laravel Mix configuration.
66

7+
78
## Warning
89

910
The HydePHP UI Kit is still in development and is not yet ready for production use.
1011
All components including their names can and probably will be changed.
1112

13+
1214
## Preface
1315

1416
Please make sure you're familiar with [Laravel Blade](https://laravel.com/docs/blade) before using the HydePHP UI Kit.
1517

1618
>info Tip: Most components allow you to pass any additional HTML attributes to the element!
1719
20+
1821
## Components
1922

2023
### Buttons
@@ -120,7 +123,7 @@ This component will convert any Markdown within it to HTML using the Hyde Markdo
120123
```blade
121124
<x-hyde-ui::markdown>
122125
## Markdown Heading
123-
126+
124127
Hello world!
125128
</x-hyde-ui::markdown>
126129
```

0 commit comments

Comments
 (0)
Please sign in to comment.