Move docs to bulma repo (#299)

* Add package files whitelist

* Add flex shrink

* Add flex shrink

* Add docs config

* Fix flex shrink

* Fix hero pages

* Add docs folder
This commit is contained in:
Jeremy Thomas
2016-09-11 12:00:49 +01:00
committed by GitHub
parent 1d9f6318a5
commit 9094eff30a
127 changed files with 21908 additions and 308 deletions

View File

@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body class="layout-{{ page.layout }}{% if page.doc-tab %} page-{{ page.doc-tab}}{% endif %}">
{{ content }}
{% include footer.html %}
</body>
</html>

View File

@@ -0,0 +1,59 @@
---
layout: default
route: documentation
---
<section class="hero is-primary">
<div class="hero-head">
<div class="container">
{% include header.html %}
</div>
</div>
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column">
<p class="title">
Documentation
</p>
<p class="subtitle">
Everything you need to <strong>create a website</strong> with Bulma
</p>
</div>
<div class="column is-narrow">
{% include carbon.html %}
</div>
</div>
</div>
</div>
<div class="hero-foot">
<div class="container">
<nav class="tabs is-boxed">
<ul>
<li {% if page.doc-tab == 'overview' %}class="is-active"{% endif %}>
<a href="{{ site.documentation }}">Overview</a>
</li>
<li {% if page.doc-tab == 'modifiers' %}class="is-active"{% endif %}>
<a href="{{ site.baseurl }}/documentation/modifiers/syntax">Modifiers</a>
</li>
<li {% if page.doc-tab == 'grid' %}class="is-active"{% endif %}>
<a href="{{ site.baseurl }}/documentation/grid/columns">Grid</a>
</li>
<li {% if page.doc-tab == 'elements' %}class="is-active"{% endif %}>
<a href="{{ site.baseurl }}/documentation/elements/box/">Elements</a>
</li>
<li {% if page.doc-tab == 'components' %}class="is-active"{% endif %}>
<a href="{{ site.baseurl }}/documentation/components/card/">Components</a>
</li>
<li {% if page.doc-tab == 'layout' %}class="is-active"{% endif %}>
<a href="{{ site.baseurl }}/documentation/layout/container/">Layout</a>
</li>
</ul>
</div>
</div>
</nav>
</section>
{{ content }}

25
docs/_layouts/post.html Normal file
View File

@@ -0,0 +1,25 @@
---
layout: default
route: blog
---
{% include blog-hero.html %}
<section class="section">
<div class="container">
<article class="article {{ page.category | downcase }}{% if page.recommended == true %} recommended{% endif %}">
<p class="subtitle">
<a href="{{ site.baseurl }}/blog">Back</a>
</p>
<p class="subtitle is-4">
{{ page.date | date_to_string }}
</p>
<h1 class="title is-2">
{{ page.title }}
</h1>
<div class="content is-medium">
{{ content }}
</div>
</article>
</div>
</section>