Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ js_include:
# The global title that is displayed at the top of the pages
global_title: Styleguide

# The prefix path for theme's assets
theme_path_prefix: 'styleguides'

```

In this example the markdown file `app/styles/styleguide.md` is used for the content on the index page. Also, if you're using Bower, adjust the package path accordingly: ```documentation_assets: bower_components/hologram-github-theme```.
Expand Down
8 changes: 4 additions & 4 deletions _footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</div>

<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="scripts/vendor/jquery.waypoints.min.js"></script>
<script src="scripts/vendor/sticky.min.js"></script>
<script src="scripts/vendor/infinite.min.js"></script>
<script src="scripts/hgt.js"></script>
<script src="<%= @config['theme_path_prefix'] %>/scripts/vendor/jquery.waypoints.min.js"></script>
<script src="<%= @config['theme_path_prefix'] %>/scripts/vendor/sticky.min.js"></script>
<script src="<%= @config['theme_path_prefix'] %>/scripts/vendor/infinite.min.js"></script>
<script src="<%= @config['theme_path_prefix'] %>/scripts/hgt.js"></script>

<% if @config['js_include'].to_s.strip.length != 0 %>
<% @config['js_include'].each do |js| %>
Expand Down
4 changes: 2 additions & 2 deletions _header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title><%= title %> <% if title != '' %>&ndash;<% end %> <%= @config['global_title'] %></title>

<!-- Styleguide CSS -->
<link rel="stylesheet" href="styles/hgt-syntax.css">
<link rel="stylesheet" href="styles/hgt.css">
<link rel="stylesheet" href="<%= @config['theme_path_prefix'] %>/styles/hgt-syntax.css">
<link rel="stylesheet" href="<%= @config['theme_path_prefix'] %>/styles/hgt.css">

<!-- Source CSS -->
<% if @config['css_include'].to_s.strip.length != 0 %>
Expand Down