1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-24 13:26:08 +03:00
guide/README.md

73 lines
3.2 KiB
Markdown
Raw Normal View History

2016-03-19 21:41:50 +03:00
# Aelve Guide
2016-02-02 12:35:39 +03:00
[![Build status](https://secure.travis-ci.org/aelve/guide.svg)](https://travis-ci.org/aelve/guide)
[![BSD3 license](https://img.shields.io/badge/license-BSD3-blue.svg)](https://github.com/aelve/guide/blob/master/LICENSE)
2016-03-09 21:44:59 +03:00
2016-04-23 01:05:50 +03:00
The beta version is running at [guide.aelve.com](https://guide.aelve.com). The most complete section yet is [the one about lenses](https://guide.aelve.com/haskell/lenses-sth6l9jl).
2016-03-10 00:28:24 +03:00
2016-04-23 01:05:50 +03:00
Installation instructions and the explanation of config variables (in `config.json`) are here: [INSTALL.md](INSTALL.md). Don't be afraid to install it locally it's very easy! You don't need to set up any databases or anything like that, and you can get a full copy of the data from the site by simply cloning it from Github.
2016-03-11 17:37:55 +03:00
## Contributing
If you want to contribute but don't know where to start, grep the source for
2016-06-19 18:43:06 +03:00
`[very-easy]` and `[easy]`, or look at these issues:
* [“your first pull request”][first pr] really easy things, with detailed “how to fix it” instructions
* [“your second pull request”][second pr] less easy things, which assume that you already know where stuff happens in the code
* [“not-fleshed-out idea”][ideas] discussion issues (“should we have users? what better ways are there to present pros and cons?”) which you can help with even if you don't know Haskell
* [“design”][design] issues about design (which I'm not good at, and so help is wanted)
[first pr]: https://github.com/aelve/guide/issues?q=is%3Aissue+is%3Aopen+label%3A%22your+first+pull+request%22
[second pr]: https://github.com/aelve/guide/issues?q=is%3Aissue+is%3Aopen+label%3A%22your+second+pull+request%22
[ideas]: https://github.com/aelve/guide/issues?q=is%3Aissue+is%3Aopen+label%3A%22not-fleshed-out+idea%22
[design]: https://github.com/aelve/guide/issues?q=is%3Aissue+is%3Aopen+label%3A%22design%22
2016-06-19 20:23:20 +03:00
2018-08-20 01:31:28 +03:00
## Testing
You need `chromedriver` and `selenium-server-standalone` installed (those are the package names on Arch Linux). Then you can do
```
$ java -jar /usr/share/selenium-server/selenium-server-standalone.jar
```
```
$ stack test
```
2016-06-19 20:23:20 +03:00
## Overview of the code
### Folder structure
* `lib` actual code (as a library)
* `src` just a dumb `Main.hs` file to compile an executable
* `tests` tests
2016-06-19 20:23:20 +03:00
* `static` icons, CSS, Markdown pages, HTML pages, and some JS libraries
* `templates` HTML templates for pages and elements of pages
2016-06-19 20:23:20 +03:00
* `scripts` some scripts used by automatic testing
* `favicon` code used to generate a favicon
* `guidejs` client side JavaScript
2018-09-24 01:03:28 +03:00
* `front` the new frontend, written in Vue.js
2016-06-19 20:23:20 +03:00
2018-09-01 15:29:32 +03:00
### Frontend
To lint Vue.js components, you need to do:
```bash
npm install --global eslint eslint-plugin-vue@next
cd static/components
eslint .
```
Maybe there's a better way than `npm install --global`, I don't know. I'm
not a Node.js guy.
2016-06-19 20:23:20 +03:00
### Notes
When you see something like
~~~ haskell
-- See Note [acid-state]
~~~
it means that there's an extensive comment somewhere else in the code, which you can find by grepping for `Note [acid-state]`. This convention was stolen from GHC. If you know some plugin for Emacs that would help with jumping to comments (even if those comments would have to be formatted differently), let me know.