Skip to content

Commit

Permalink
Merge pull request mmistakes#20 from pmarsceill/v0.1.6
Browse files Browse the repository at this point in the history
v0.1.6 release
  • Loading branch information
pmarsceill committed Nov 16, 2018
2 parents d5ef35c + 0a5edea commit fa40528
Show file tree
Hide file tree
Showing 4,135 changed files with 2,859 additions and 399,324 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.sass-cache
_site
Gemfile.lock
node_modules
3 changes: 2 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ignoreFiles" : [
"assets/css/just-the-docs.scss"
"assets/css/just-the-docs.scss",
"_sass/vendor/**/*.scss"
],
"extends": [
"stylelint-config-primer"
Expand Down
8 changes: 3 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ description: A Jekyll theme for documentation
baseurl: "/just-the-docs/" # the subpath of your site, e.g. /blog
# url: "" # the base hostname & protocol for your site, e.g. http://example.com

sass:
# Load dependancies
load_paths:
- node_modules/

permalink: pretty
exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"]

# Enable or disable the site search
search_enabled: true

# Aux links for the upper right navigation
aux_links:
"Just the Docs on GitHub":
Expand Down
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

<title>{{ page.title }} - {{ site.title }}</title>
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
{% if site.search_enabled != nil %}
<script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
{% endif %}
<script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>

<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
6 changes: 4 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@
</div>
<div class="main-content-wrap">
<div class="page-header">
<div class="main-content pb-0">
<div class="main-content">
{% if site.search_enabled != nil %}
<div class="search js-search">
<div class="search-input-wrap">
<input type="text" class="js-search-input search-input" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
<svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
</div>
<div class="js-search-results search-results-wrap"></div>
</div>
{% endif %}
{% if site.aux_links != nil %}
<ul class="list-style-none text-small mt-md-2 pb-4 pb-md-0 js-aux-nav aux-nav">
<ul class="list-style-none text-small mt-md-1 mb-md-1 pb-4 pb-md-0 js-aux-nav aux-nav">
{% for link in site.aux_links %}
<li class="d-inline-block my-0{% unless forloop.last %} mr-2{% endunless %}"><a href="{{ link.last }}">{{ link.first }}</a></li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion _sass/base.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Base element style overrides
//
// stylelint-disable selector-no-type
// stylelint-disable selector-no-type, selector-max-type

* {
box-sizing: border-box;
Expand Down
2 changes: 1 addition & 1 deletion _sass/code.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Code and syntax highlighting
//
// stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type
// stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type, selector-max-type

code {
padding: 0.2em 0.15em;
Expand Down
19 changes: 18 additions & 1 deletion _sass/content.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Styles for rendered markdown in the .main-content container
//
// stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors
// stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type

.page-content {
ul,
Expand Down Expand Up @@ -56,6 +56,23 @@
}
}

.task-list {
padding-left: 0;
}

.task-list-item {
display: flex;
align-items: center;

&::before {
content: "";
}
}

.task-list-item-checkbox {
margin-right: 0.6em;
}

hr + * {
margin-top: 0;
}
Expand Down
7 changes: 4 additions & 3 deletions _sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,18 @@

@include mq(md) {
background-color: $white;
border-bottom: $border $border-color;

}

.main-content {
padding-top: 0;

@include mq(md) {
display: flex;
justify-content: space-between;
justify-content: flex-end;
height: 60px;
padding-top: $sp-4;
padding-bottom: $sp-4;
border-bottom: $border $border-color;
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion _sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
z-index: 101;
height: 60px;
padding-top: $sp-4;
box-shadow: inset 0 -1px 0 $border-color;
border-bottom: $border $border-color;
}
}

Expand All @@ -38,6 +38,8 @@
}

.navigation-list-item {
position: relative;

&::before {
position: absolute;
margin-top: 0.3em;
Expand Down
2 changes: 1 addition & 1 deletion _sass/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
display: block;
padding-top: $sp-1;
padding-right: 0;
padding-bottom: $sp-4;
padding-bottom: 0;
padding-left: 0;
margin-bottom: 0;
background-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion _sass/tables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Tables
//
// stylelint-disable max-nesting-depth, selector-no-type
// stylelint-disable max-nesting-depth, selector-no-type, selector-max-type

table {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion _sass/typography.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Typography
//
// stylelint-disable primer/selector-no-utility, selector-no-type
// stylelint-disable primer/selector-no-utility, selector-no-type, selector-max-type

h1,
.text-alpha {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion assets/css/just-the-docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Import dependancies
//

@import "./normalize.scss/normalize.scss";
@import "./vendor/normalize.scss/normalize.scss";

//
// Import Just the docs scss
Expand Down
4 changes: 3 additions & 1 deletion assets/js/just-the-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ function initSearch() {

function ready(){
toggleNav();
initSearch();
if (typeof lunr !== 'undefined') {
initSearch();
}
}

// in case the document is already rendered
Expand Down
25 changes: 25 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: default
title: Configuration
nav_order: 2
---

# Configuration

Just the Docs has some specific configuration parameters that can be definied in your Jekyll site's `config.yml` file.

## Search enabled

```yml
# Enable or disable the site search
search_enabled: true
```

## Aux links

```yml
# Aux links for the upper right navigation
aux_links:
"Just the Docs on GitHub":
- "//github.com/pmarsceill/just-the-docs"
```
2 changes: 1 addition & 1 deletion docs/customization.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Customization
nav_order: 5
nav_order: 6
---

# Customization
Expand Down
6 changes: 6 additions & 0 deletions docs/index-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ end
- level 2 item
- level 1 item

### And a task list

- [ ] Hello, this is a TODO item
- [ ] Hello, this is another TODO item
- [x] Goodbye, this item is done

### Small image

![](https://assets-cdn.github.com/images/icons/emoji/octocat.png)
Expand Down
2 changes: 1 addition & 1 deletion docs/navigation-structure.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Navigation Structure
nav_order: 4
nav_order: 5
---

# Navigation Structure
Expand Down
15 changes: 13 additions & 2 deletions docs/search.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Search
nav_order: 6
nav_order: 7
---

# Search
Expand All @@ -12,7 +12,9 @@ Just the docs uses [lunr.js](http://lunrjs.com) to add a client-side search inte
- Page content
- Page URL

## Setup search
## Set up search

### 1. Generate search index

Before you can use search, you must initialize the feature by running this
rake command that comes with the `just-the-docs`
Expand Down Expand Up @@ -41,3 +43,12 @@ your search index. Alternatively, you can create the file manually in the
```

_Note: If you don't run this rake command or create this file manually, search will not work (or it will use the search index data from this docs site, not your site's content)._

### 2. Enable search in configuration

In your site's `_config.yml` enable search:

```yml
# Enable or disable the site search
search_enabled: true
```
2 changes: 1 addition & 1 deletion docs/ui-components/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: Code
parent: UI Components
nav_order: 5
nav_order: 6
---

# Code
Expand Down
98 changes: 98 additions & 0 deletions docs/ui-components/lists.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
layout: default
title: Lists
parent: UI Components
nav_order: 5
---

# Lists
{:.no_toc}

## Table of contents
{: .no_toc .text-delta }

1. TOC
{:toc}

---

Most lists can be rendered with pure markdown...

## Unordered list
<div class="code-example" markdown="1">
- Item 1
- Item 2
- Item 3

_or_

* Item 1
* Item 2
* Item 3
</div>
```markdown
- Item 1
- Item 2
- Item 3

_or_

* Item 1
* Item 2
* Item 3
```


## Ordered list
<div class="code-example" markdown="1">
1. Item 1
1. Item 2
1. Item 3
</div>
```markdown
1. Item 1
1. Item 2
1. Item 3
```
## Task list

<div class="code-example" markdown="1">
- [ ] hello, this is a todo item
- [ ] hello, this is another todo item
- [x] goodbye, this item is done
</div>
```markdown
- [ ] hello, this is a todo item
- [ ] hello, this is another todo item
- [x] goodbye, this item is done
```

## Definition list

Definition lists require HTML syntax and aren't supported with the GitHub flavored markdown compiler.

<div class="code-example" markdown="1">
<dl>
<dt>Name</dt>
<dd>Godzilla</dd>
<dt>Born</dt>
<dd>1952</dd>
<dt>Birthplace</dt>
<dd>Japan</dd>
<dt>Color</dt>
<dd>Green</dd>
</dl>
</div>
```html
<dl>
<dt>Name</dt>
<dd>Godzilla</dd>
<dt>Born</dt>
<dd>1952</dd>
<dt>Birthplace</dt>
<dd>Japan</dd>
<dt>Color</dt>
<dd>Green</dd>
</dl>
```

Loading

0 comments on commit fa40528

Please sign in to comment.