2016-05-18 10:34:08 +02:00
# Website for awesome WM
[![Build Status ](https://travis-ci.org/awesomeWM/awesome-www.svg?branch=master )](https://travis-ci.org/awesomeWM/awesome-www)
This is the main source of the
[website for the awesome window manager ](https://awesomewm.org/ ).
2017-01-14 01:48:17 +01:00
## Requirements
- [ikiwiki ](https://ikiwiki.info/ )
- [PerlMagick ](https://www.imagemagick.org/script/perl-magick.php ) (optional,
for images)
## Hacking
You can build the web page locally by running `make` , which will generate the
output in `html/` .
To view it, open `html/index.html` in your web browser.
You can simulate running a web server using Python, which will automatically
open `index.html` when following a link to a directory:
$ cd html
$ python3 -m http.server -b localhost 8000 &
2016-05-18 10:34:08 +02:00
2017-01-20 23:03:49 +01:00
## Contributing to the Screenshots Section
2017-01-14 01:41:48 +01:00
To contribute with Screenshots:
2017-01-21 23:23:58 +01:00
2017-07-29 23:33:51 +02:00
1. Add your image to the folder images/screenshots with an appropriate name.
2017-01-21 23:23:58 +01:00
2017-10-31 14:04:22 +01:00
1. Add a new `<figure>` tag in the bottom of *screenshots.mdwn* ,
2017-01-21 23:23:58 +01:00
2017-10-31 14:04:22 +01:00
1. Inside the new tag, add the screenshots with a < img > tag and use the `<figcaption>` to add caption to the image, explaining what is being used on the screenshot.
2017-01-20 23:03:49 +01:00
2017-01-20 13:35:47 +01:00
## Contributing to Recipes Section
1. Fork this repository and create a new branch with a name relevant to the information you will be adding to the site.
If you have doubts in how to Fork and Branch, take a look in this cheat-sheet [here ](https://www.git-tower.com/blog/git-cheat-sheet/ )
2017-01-20 17:17:54 +01:00
The process of editing files can be done inside GitHub's interface, more information [here ](https://help.github.com/articles/github-flow/ )
2017-01-20 13:35:47 +01:00
#### With external Link
2017-07-29 23:33:51 +02:00
1. Create a new link in markdown format `[Link Name](Real Link)` in the appropriate section in `recipes.mdwn` file.
2017-01-20 13:35:47 +01:00
#### With internal Link (host in awesome site)
1. Create a new page with your tutorial/setup/widget/snippet in Markdown, with a relevant name, under the `recipes` folder.
- Example `recipes/xrandr-tutorial.mdmw`
2017-10-31 14:04:22 +01:00
1. Link your page to the right section in the `recipes.mdwn` page with Markdown syntax.
2017-01-20 13:35:47 +01:00
- Example `[XrandR Tutorial](../recipes/xrandr-tutorial.html)`
#### Seeing results and pulling your changes
2017-07-29 23:33:51 +02:00
1. Build the site as explained in the Hacking section in this same page to check how your changes will look like.
2017-01-20 13:35:47 +01:00
2017-10-31 14:04:22 +01:00
1. If everything is right and looks good, you're ready do make a Pull Request.
2017-01-14 01:41:48 +01:00
2016-05-18 10:34:08 +02:00
## Publishing
The master branch gets built by
[Travis CI ](https://travis-ci.org/awesomeWM/awesome-www/ ), and is then published
through [Github's Organization Pages ](https://github.com/awesomeWM/awesomeWM.github.io ).
## Other resources
The API documentation for the master branch at
2017-01-14 01:48:17 +01:00
[/apidoc ](https://awesomewm.org/apidoc/ ) is viewable at [Github's Project
2016-05-18 10:34:08 +02:00
Pages for the apidoc repo](https://github.com/awesomeWM/apidoc), where it gets
pushed to from successful builds in [the awesome main
repo](https://github.com/awesomeWM/awesome/).