2016-11-10 15:23:04 +05:30
# Gitea: Theme
2016-11-11 01:13:19 +05:30
[![Build Status ](http://drone.gitea.io/api/badges/go-gitea/theme/status.svg )](http://drone.gitea.io/go-gitea/theme)
2017-06-11 12:50:09 +05:30
[![Join the chat at https://img.shields.io/discord/322538954119184384.svg ](https://img.shields.io/discord/322538954119184384.svg )](https://discord.gg/NsatcWJ)
2016-11-10 15:23:04 +05:30
This is a Hugo theme that gets used within all of our websites like our blog,
documentation and also the redirects. If you commit any changes to the `master`
branch it will trigger rebuilds of all the related websites.
2016-12-09 13:59:30 +05:30
## Install
You need an existing [Hugo ](https://github.com/spf13/hugo ) website, than you can
just download our prebuilt [theme ](https://dl.gitea.io/theme/master.tar.gz ), put
it into your `themes/gitea` folder and enable the theme with the
`theme = "gitea"` option of your website.
## Development
2017-08-02 13:47:08 +05:30
We choose [yarn ](https://yarnpkg.com ) to fetch our dependencies and
2016-12-09 13:59:30 +05:30
[gulp ](http://gulpjs.com/ ) for the pipeline. We won't cover the installation of
2017-08-02 13:47:08 +05:30
nodejs or yarn, for that you can find enough guides depending on your operating
2016-12-09 13:59:30 +05:30
system. First of all you have to install the required dependencies:
```
2017-08-02 13:47:08 +05:30
yarn install -q
2016-12-09 13:59:30 +05:30
```
After you have successfully installed the required dependencies you should be
able to use these commands to just clean and build generated sources of the
theme:
```
2017-08-02 13:47:08 +05:30
yarn run clean
yarn run build
yarn run release
2016-12-09 13:59:30 +05:30
```
If you want to do more development on the theme we suggest to use the `watch`
task we have defined to get the changes directly built after saving changes to
a file:
```
2017-08-02 13:47:08 +05:30
yarn run watch
2016-12-09 13:59:30 +05:30
```
When you are done with your changes just create a pull request, after merging
2017-08-02 13:47:08 +05:30
the pull request the theme will be published to our [download page ](https://dl.gitea.io/theme ) automatically.
2016-12-09 13:59:30 +05:30
2016-11-10 15:23:04 +05:30
## Contributing
Fork -> Patch -> Push -> Pull Request
2016-11-28 19:04:03 +05:30
## Authors
* [Maintainers ](https://github.com/orgs/go-gitea/people )
* [Contributors ](https://github.com/go-gitea/theme/graphs/contributors )
2016-11-10 15:23:04 +05:30
## License
This project is under the Apache-2.0 License. See the [LICENSE ](LICENSE ) file
for the full license text.
## Copyright
```
2018-04-04 11:44:28 +05:30
Copyright (c) 2018 The Gitea Authors < https: / / gitea . io >
2016-11-10 15:23:04 +05:30
```