ooblatron / bootdown
Create quick and simple websites rendered in Bootstrap using just markdown files
Requires
- php: >=7.1
- erusev/parsedown: ^1.7
- ooblatron/slipstream: ^1.0
- ooblatron/tsuka: ^1.1
- vlucas/phpdotenv: ^5.5
README
Bootdown allows you to create quick and simple websites with Bootstrap styling using just Markdown files
Installation
Install the latest version with
composer create-project ooblatron/bootdown-site .
Point your web hosting root to html
.
Basic Usage
Add new pages by uploading Markdown documents to the docs directory and then mapping them to a URL by changing the config/Map.php
file.
For example
- Upload a Markdown document called
world.md
to the docs directory - Add the following line to
config/Maps.php
'hello' => 'world.md'
Going to https://yourdomain.com/hello
will display the contents of world.md
with Bootstrap styling.
You will probably prefer to have the name of the Markdown file match the URL path but, as the example shows, you do not have to.
You can also map to Markdown files in subdirectories, for example
'hello' => 'greetings/world.md'
This displays the Markdown file docs/greetings/world.md
when visiting https://yourdomain.com/hello
.
How to use Markdown
Please refer to the Markdown Guide if you need help with formatting documents.
More information
Documentation
About
Requirements
- PHP 7.1 or above
- Composer package ooblatron/slipstream for dependency injection
- Composer package erusev/parsedown to convert Markdown to HTML
- Composer package ooblatron/tsuka to top and tail web pages and add Bootstrap styling
Bootstrap versions
Version 1 of Bootdown supports Bootstrap 4.
Author
Tim Rogers - tim@ooblatron.org - https://twitter.com/timdrogers
License
Bootdown is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
This package uses the brilliant Bootstrap framework, which allows back-end coders to create clean and professional web pages without needing a deep knowledge of graphic design or CSS.
The graphics used to display HTTP error codes are from Laravel version 5.7.
The .htaccess syntax was taken from a Stackoverflow answer provided by user jacoz.