-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from gnosis/fix-doc-gen
More template tweaks
- Loading branch information
Showing
35 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
theme: jekyll-theme-dinky | ||
permalink: pretty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!doctype html> | ||
<html lang="{{ site.lang | default: "en-US" }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | ||
|
||
{% seo %} | ||
<link href='https://fonts.googleapis.com/css?family=Arvo:400,700,400italic' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> | ||
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<header> | ||
<h1 class="header">{{ site.title | default: site.github.repository_name }}</h1> | ||
<p class="header">{{ site.description | default: site.github.project_tagline }}</p> | ||
|
||
<ul> | ||
{% if site.show_downloads %} | ||
<li class="download"><a class="buttons" href="{{ site.github.zip_url }}">Download ZIP</a></li> | ||
<li class="download"><a class="buttons" href="{{ site.github.tar_url }}">Download TAR</a></li> | ||
{% endif %} | ||
<li><a class="buttons github" href="{{ site.github.repository_url }}">View On GitHub</a></li> | ||
<li> | ||
<label for="contracts">Contracts</label> | ||
<select id="contracts" name="contracts"> | ||
<option value="" selected>Please choose</option> | ||
{% for page in site.pages %} | ||
<option value="{{ page.url }}">{{ page.title }} | {{ page.url }}</option> | ||
{% endfor %} | ||
</select> | ||
</li> | ||
</ul> | ||
|
||
{% if site.github.is_project_page %} | ||
<p class="header">This project is maintained by <a class="header name" href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p> | ||
{% endif %} | ||
|
||
{% if site.github.is_user_page %} | ||
<ul> | ||
<li><a class="buttons github" href="{{ site.github.owner_url }}">GitHub Profile</a></li> | ||
</ul> | ||
{% endif %} | ||
</header> | ||
|
||
<section> | ||
{{ content }} | ||
</section> | ||
|
||
<footer> | ||
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p> | ||
</footer> | ||
</div> | ||
<!--[if !IE]><script>fixScale(document);</script><![endif]--> | ||
{% if site.google_analytics %} | ||
<script type="text/javascript"> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -r docs | ||
find contracts -name '*.sol' ! -name 'Migrations.sol' -type f -exec bash -c 'mkdir -p docs/`basename {} .sol`; ./node_modules/.bin/solmd {} --dest docs/`basename {} .sol`/index.md' \; | ||
mkdir docs | ||
find contracts -name '*.sol' ! -name 'Migrations.sol' -type f -exec bash -c './node_modules/.bin/solmd {} --dest docs/`basename {} .sol`.md' \; |