Skip to content

Commit

Permalink
fix prettier bugs, remove prettier from MD formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarsceill authored Mar 3, 2022
1 parent 13298d2 commit 79f30a2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 22 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ assets/css/just-the-docs-dark.scss
assets/js/vendor/lunr.min.js
assets/js/search-data.json
assets/js/just-the-docs.js
*.md
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}

}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p align="center">
<h1 align="center">Just the Docs</h1>
<p align="center">A modern, highly customizable, and responsive Jekyll theme for documentation with built-in search.<br>Easily hosted on GitHub Pages with few dependencies.</p>
<p align="center"><strong><a href="https://pmarsceill.github.io/just-the-docs/">See it in action!</a></strong></p>
<p align="center"><strong><a href="https://just-the-docs.github.io/just-the-docs/">See it in action!</a></strong></p>
<br><br><br>
</p>

Expand Down Expand Up @@ -39,7 +39,7 @@ Alternatively, you can run it inside Docker while developing your site
## Usage
[View the documentation](https://pmarsceill.github.io/just-the-docs/) for usage information.
[View the documentation](https://just-the-docs.github.io/just-the-docs/) for usage information.
## Contributing
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
title: Just the Docs
description: A Jekyll theme for documentation
baseurl: "/just-the-docs" # the subpath of your site, e.g. /blog
url: "https://pmarsceill.github.io" # the base hostname & protocol for your site, e.g. http://example.com
url: "https://just-the-docs.github.io" # the base hostname & protocol for your site, e.g. http://example.com

permalink: pretty
exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"
Expand Down
4 changes: 1 addition & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ nav_order: 2
---

# Configuration

{: .no_toc }

Just the Docs has some specific configuration parameters that can be defined in your Jekyll site's \_config.yml file.
{: .fs-6 .fw-300 }

## Table of contents

{: .no_toc .text-delta }

1. TOC
{:toc}
{:toc}

---

Expand Down
18 changes: 6 additions & 12 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ nav_order: 6
---

# Customization

{: .no_toc }

## Table of contents

{: .no_toc .text-delta }

1. TOC
{:toc}
{:toc}

---

Expand All @@ -29,7 +27,6 @@ Just the Docs supports two color schemes: light (default), and dark.
To enable a color scheme, set the `color_scheme` parameter in your site's `_config.yml` file:

#### Example

{: .no_toc }

```yaml
Expand Down Expand Up @@ -66,7 +63,6 @@ Available variables are listed in the [\_variables.scss](https://github.com/just
For example, to change the link color from the purple default to blue, include the following inside your scheme file:

#### Example

{: .no_toc }

```scss
Expand All @@ -87,13 +83,12 @@ color_scheme: foo
### Switchable custom scheme

If you want to be able to change the scheme dynamically, for example via javascript, just add a file `assets/css/just-the-docs-foo.scss` (replace `foo` by your scheme name)
with the following content:`
with the following content:

## {% raw %}

---

{% include css/just-the-docs.scss.liquid color_scheme="foo" %}
{% raw %}
---
---
{% include css/just-the-docs.scss.liquid color_scheme="foo" %}
{% endraw %}

This allows you to switch the scheme via the following javascript.
Expand All @@ -112,7 +107,6 @@ This will allow for all overrides to be kept in a single file, and for any upstr
For example, if you'd like to add your own styles for printing a page, you could add the following styles.

#### Example

{: .no_toc }

```scss
Expand Down
3 changes: 1 addition & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ description: "Just the Docs is a responsive Jekyll theme with built-in search th
permalink: /
---

# Focus on writing good documentation

# Focus on writing good documentation.
{: .fs-9 }

Just the Docs gives your documentation a jumpstart with a responsive Jekyll theme that is easily customizable and hosted on GitHub Pages.
Expand Down

0 comments on commit 79f30a2

Please sign in to comment.