diff --git a/_layouts/docindex.html b/_layouts/docindex.html
new file mode 100644
--- /dev/null
+++ b/_layouts/docindex.html
@@ -0,0 +1,17 @@
+---
+layout: page
+title: RPC Documentation by Version
+permalink: /doc
+---
+
+
+
+ {% for version in page.versions %}
+ - {{ version }}
+ {% endfor %}
+
+
+
+
+
diff --git a/_plugins/doc-index-generator.rb b/_plugins/doc-index-generator.rb
--- a/_plugins/doc-index-generator.rb
+++ b/_plugins/doc-index-generator.rb
@@ -3,14 +3,36 @@
safe true
def generate(site)
+ versions = Set[]
+
+ # Generate an index for RPC commands of each version
site.collections['doc'].docs.each do |doc|
version = doc['version']
if version
+ versions.add(version)
if version != 'dev'
site.pages << RpcIndexPage.new(site, site.source, File.join('doc', version, 'rpc'), version)
end
end
end
+
+ # Generate a top-level index listing all of the versions
+ site.pages << DocIndexPage.new(site, site.source, File.join('doc'), versions.to_a())
+ end
+ end
+
+ class DocIndexPage < Page
+ def initialize(site, base, dir, versions)
+ @site = site
+ @base = base
+ @dir = dir
+ @name = 'index.html'
+
+ self.process(@name)
+ self.read_yaml(File.join(base, '_layouts'), 'docindex.html')
+ p versions
+ self.data['versions'] = versions
+ p self.data
end
end
diff --git a/css/main.css b/css/main.css
--- a/css/main.css
+++ b/css/main.css
@@ -455,7 +455,7 @@
}
.intro-header .page-heading h1 {
margin-top: 0;
- font-size: 50px;
+ font-size: 40px;
}
.intro-header .post-heading h1 {
margin-top: 0;
@@ -507,12 +507,6 @@
.intro-header.big-img .post-heading {
padding: 150px 0;
}
- .intro-header .page-heading h1 {
- font-size: 80px;
- }
- .intro-header .post-heading h1 {
- font-size: 50px;
- }
.intro-header.big-img .img-desc {
font-size: 14px;
}