1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-19 03:55:59 -05:00
notes/index.md

98 lines
3.8 KiB
Markdown
Raw Normal View History

2017-03-09 13:16:08 -05:00
---
layout: default
title: Home
nav_order: 1
2019-01-14 14:32:41 -05:00
description: "Just the Docs is a responsive Jekyll theme with built-in search that is easily customizable and hosted on GitHub Pages."
2018-10-24 14:06:41 -04:00
permalink: /
2020-04-27 13:54:44 -04:00
last_modified_date: 2020-04-27T17:54:08+0000
2017-03-09 13:16:08 -05:00
---
2017-06-04 17:50:01 -04:00
# Focus on writing good documentation
2017-11-08 11:23:05 -05:00
{: .fs-9 }
2017-03-09 13:16:08 -05:00
2019-01-14 14:32:41 -05:00
Just the Docs gives your documentation a jumpstart with a responsive Jekyll theme that is easily customizable and hosted on GitHub Pages.
2017-06-04 17:50:01 -04:00
{: .fs-6 .fw-300 }
2017-03-24 09:47:37 -04:00
2019-01-06 15:51:30 -05:00
[Get started now](#getting-started){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 } [View it on GitHub](https://github.com/pmarsceill/just-the-docs){: .btn .fs-5 .mb-4 .mb-md-0 }
2017-03-09 13:16:08 -05:00
---
## Getting started
2019-01-14 14:18:09 -05:00
2018-10-23 16:29:08 -04:00
### Dependencies
2017-03-09 13:16:08 -05:00
2019-09-10 12:03:51 -04:00
Just the Docs is built for [Jekyll](https://jekyllrb.com), a static site generator. View the [quick start guide](https://jekyllrb.com/docs/) for more information. Just the Docs requires no special plugins and can run on GitHub Pages' standard Jekyll compiler. The [Jekyll SEO Tag plugin](https://github.com/jekyll/jekyll-seo-tag) is included by default (no need to run any special installation) to inject SEO and open graph metadata on docs pages. For information on how to configure SEO and open graph metadata visit the [Jekyll SEO Tag usage guide](https://jekyll.github.io/jekyll-seo-tag/usage/).
2019-01-14 14:18:09 -05:00
2018-11-16 14:37:28 -05:00
### Quick start: Use as a GitHub Pages remote theme
2019-01-14 14:18:09 -05:00
2018-11-16 14:55:20 -05:00
1. Add Just the Docs to your Jekyll site's `_config.yml` as a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/)
2018-11-16 14:37:28 -05:00
```yaml
remote_theme: pmarsceill/just-the-docs
```
2019-01-14 14:32:41 -05:00
<small>You must have GitHub Pages enabled on your repo, one or more Markdown files, and a `_config.yml` file. [See an example repository](https://github.com/pmarsceill/jtd-remote)</small>
2018-11-16 14:37:28 -05:00
### Local installation: Use the gem-based theme
2019-01-14 14:18:09 -05:00
2017-03-09 13:16:08 -05:00
1. Install the Ruby Gem
```bash
$ gem install just-the-docs
```
```yaml
# .. or add it to your your Jekyll sites Gemfile
gem "just-the-docs"
```
2018-11-16 14:37:28 -05:00
2. Add Just the Docs to your Jekyll sites `_config.yml`
2017-03-09 13:16:08 -05:00
```yaml
theme: "just-the-docs"
```
2017-11-08 11:23:05 -05:00
3. _Optional:_ Initialize search data (creates `search-data.json`)
```bash
$ bundle exec just-the-docs rake search:init
```
2017-03-09 13:16:08 -05:00
3. Run you local Jekyll server
```bash
2017-03-24 09:47:37 -04:00
$ jekyll serve
```
```bash
# .. or if you're using a Gemfile (bundler)
2017-03-09 13:16:08 -05:00
$ bundle exec jekyll serve
```
4. Point your web browser to [http://localhost:4000](http://localhost:4000)
2019-04-30 20:24:46 -04:00
If you're hosting your site on GitHub Pages, [set up GitHub Pages and Jekyll locally](https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll) so that you can more easily work in your development environment.
2018-11-16 14:37:28 -05:00
### Configure Just the Docs
2019-01-14 14:18:09 -05:00
- [See configuration options]({{ site.baseurl }}{% link docs/configuration.md %})
2018-11-16 14:37:28 -05:00
2017-03-09 13:16:08 -05:00
---
## About the project
2020-05-01 17:32:54 -04:00
Just the Docs is &copy; 2017-{{ "now" | date: "%Y" }} by [Patrick Marsceill](http://patrickmarsceill.com).
2017-03-09 13:16:08 -05:00
### License
Just the Docs is distributed by an [MIT license](https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt).
### Contributing
When contributing to this repository, please first discuss the change you wish to make via issue,
2018-10-23 14:24:42 -04:00
email, or any other method with the owners of this repository before making a change. Read more about becoming a contributor in [our GitHub repo](https://github.com/pmarsceill/just-the-docs#contributing).
2017-03-09 13:16:08 -05:00
2019-09-10 12:19:29 -04:00
#### Thank you to the contributors of Just the Docs!
<ul class="list-style-none">
{% for contributor in site.github.contributors %}
<li class="d-inline-block mr-1">
<a href="{{ contributor.html_url }}"><img src="{{ contributor.avatar_url }}" width="32" height="32" alt="{{ contributor.login }}"/></a>
</li>
{% endfor %}
</ul>
2017-03-09 13:16:08 -05:00
### Code of Conduct
Just the Docs is committed to fostering a welcoming community.
[View our Code of Conduct](https://github.com/pmarsceill/just-the-docs/tree/master/CODE_OF_CONDUCT.md) on our GitHub repository.