Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit c62177f

Browse files
committed
Move documentation from gh-pages branch to 'docs' folder
To prepare the migration to 3.0, we need to change the location where the documentation is generated from. Having a gh-pages branch makes it hard to synchronize the code and the docs. Having a "docs" folder in the repo itself simplifies this.
1 parent a420e3f commit c62177f

File tree

285 files changed

+46165
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+46165
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
/CONTRIBUTING.md export-ignore
1010
/logo.png export-ignore
1111
/phpunit.xml export-ignore
12+
/docs export-ignore

docs/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Spout Github pages
2+
====
3+
4+
1. Install `jekyll`: `sudo gem install jekyll`
5+
2. Run the site locally: `jekyll serve`

docs/_config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely need to edit after that.
5+
# For technical reasons, this file is *NOT* reloaded automatically when you use
6+
# 'jekyll serve'. If you change this file, please restart the server process.
7+
8+
# Site settings
9+
title: Spout
10+
email: oss@box.com
11+
description: "An open source PHP library to read and write spreadsheet files (XLSX, ODS and CSV), in a fast and scalable way."
12+
baseurl: "" # the subpath of your site, e.g. /blog
13+
url: "http://opensource.box.com" # the base hostname & protocol for your site
14+
15+
# Build settings
16+
markdown: kramdown
17+
highlighter: rouge
18+
kramdown:
19+
input: GFM
20+
syntax_highlighter: rouge
21+
22+
exclude: ["bower.json", "README.md"]
23+
collections:
24+
pages:
25+
output: true
26+
sections:
27+
output: true
28+
29+
# 3rd parties
30+
#google_analytics:
31+
algolia:
32+
enabled: false
33+
# apiKey:
34+
# indexName:
35+
36+
# Misc
37+
spout_html: <span class="spout">Spout</span>

docs/_includes/algolia.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% if site.algolia.enabled %}
2+
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
3+
<script type="text/javascript"> docsearch({
4+
apiKey: '{{ site.algolia.apiKey }}',
5+
indexName: '{{ site.algolia.indexName }}',
6+
inputSelector: '#algolia-doc-search'
7+
});
8+
</script>
9+
{% endif %}

docs/_includes/analytics.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% if site.google_analytics %}
2+
<script>
3+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7+
8+
ga('create', '{{ site.google_analytics }}', 'auto');
9+
ga('send', 'pageview');
10+
11+
</script>
12+
{% endif %}

docs/_includes/banner.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="site-banner">
2+
<div class="wrapper vertical-align-middle">
3+
<p class="tag-line">
4+
Read and write spreadsheets
5+
<br />
6+
<strong>quickly</strong> and <strong>at scale</strong>
7+
</p>
8+
</div>
9+
</div>

docs/_includes/base.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- http://ricostacruz.com/til/relative-paths-in-jekyll.html -->
2+
<!-- _includes/base.html -->
3+
4+
{% assign base = '' %}
5+
{% assign depth = page.url | split: '/' | size | minus: 1 %}
6+
{% if depth == 1 %}{% assign base = '.' %}
7+
{% elsif depth == 2 %}{% assign base = '..' %}
8+
{% elsif depth == 3 %}{% assign base = '../..' %}
9+
{% elsif depth == 4 %}{% assign base = '../../..' %}{% endif %}

docs/_includes/footer.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<div class="footer-col-wrapper">
6+
<div class="footer-col footer-col-1">
7+
<ul class="contact-list">
8+
<li>Need to contact us?<br><a href="https://gitter.im/box/spout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/box/spout.svg" alt="Join the chat at https://gitter.im/box/spout" /></a></li>
9+
</ul>
10+
</div>
11+
12+
<div class="footer-col footer-col-2">
13+
<ul class="social-media-list">
14+
<li><a href="https://github.com/box/spout/issues"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">GitHub Issues</span></a></li>
15+
</ul>
16+
</div>
17+
18+
<div class="footer-col footer-col-3">
19+
<p>{{ site.title }} - {{ site.description }}</p>
20+
</div>
21+
</div>
22+
23+
</div>
24+
25+
</footer>

docs/_includes/head.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.github.url }}">
10+
{% if site.algolia.enabled %}
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
12+
{% endif %}
13+
14+
{% if jekyll.environment == 'production' %}
15+
{% include analytics.html %}
16+
{% endif %}
17+
</head>

docs/_includes/header.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<header class="site-header">
2+
3+
<div class="wrapper">
4+
<a class="site-title" href="{{ site.github.url }}/">{{ site.title }}</a>
5+
6+
<nav class="site-nav">
7+
<a href="#" class="menu-icon">
8+
<svg viewBox="0 0 18 15">
9+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
10+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
11+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
12+
</svg>
13+
</a>
14+
<div class="trigger">
15+
<a class="page-link" href="{{ site.github.url }}/getting-started/">Getting Started</a>
16+
<a class="page-link" href="{{ site.github.url }}/docs/">Documentation</a>
17+
<a class="page-link" href="{{ site.github.url }}/guides/">Guides</a>
18+
<a class="page-link" href="{{ site.github.url }}/faq/">FAQ</a>
19+
<a class="page-link" href="https://github.com/box/spout">GitHub</a>
20+
{% if site.algolia.enabled %}
21+
<span class="site-search">
22+
<input type="text" id="algolia-doc-search">
23+
</span>
24+
{% endif %}
25+
</div>
26+
</nav>
27+
28+
</div>
29+
30+
</header>

0 commit comments

Comments
 (0)