Skip to content

Commit

Permalink
Migrate to sleep.urbandroid.org/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Artaud committed Jan 3, 2024
1 parent 8270468 commit c7ef8e5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title: Sleep as Android
email: [email protected]
description: >- # this means to ignore newlines until "baseurl:"
Documentation site for Sleep as Android (a sleep tracking, sleep cycle Android app)
baseurl: "/" # the subpath of your site, e.g. /blog
baseurl: "/docs" # the subpath of your site, e.g. /blog
url: "http://localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: UrbandroidTeam

Expand Down Expand Up @@ -54,7 +54,7 @@ asciidoctor:
template_dir: _templates
attributes:
xrefstyle: full
imagesdir: /assets/images
imagesdir: assets/images
iconsdir: '{imagesdir}/../icons'
hardbreaks: true
icons: ''
Expand Down
4 changes: 2 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

{% assign cacheBust = site.time | date:'?v=%s' %}
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | relative_url | append: cacheBust }}">
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url | append: cacheBust }}">
<link rel="stylesheet" href="{{ "assets/css/just-the-docs.css" | relative_url | append: cacheBust }}">
<link rel="stylesheet" href="{{ "assets/css/style.css" | relative_url | append: cacheBust }}">

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-78796802-5"></script>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>Sleep as Android<br>user manual</h1>
<div class="sectionbody">
<div class="imageblock text-center">
<div class="content">
<img src="/assets/images/logo.png" alt="logo" width="50%">
<img src="assets/images/logo.png" alt="logo" width="50%">
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _plugins/liquid-filters/generate-nav.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def generateList(partialTree)
ul_contents = ""

active = isPageOrChildrenActive(partialTree)
url = '<a class="navigation-list-link ' + (active ? 'active' : '') + '" href="' + partialTree[:url].to_s + '">' + partialTree[:title].to_s + '</a>'
url = '<a class="navigation-list-link ' + (active ? 'active' : '') + '" href="' + Jekyll.sites.first.baseurl + partialTree[:url].to_s + '">' + partialTree[:title].to_s + '</a>'

ul_contents << createTag(:li, ['navigation-list-item', active], url)
if partialTree[:children] && active
Expand Down
2 changes: 1 addition & 1 deletion deploy.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
url: "https://docs.sleep.urbandroid.org" # the base hostname & protocol for your site, e.g. http://example.com
url: "https://sleep.urbandroid.org" # the base hostname & protocol for your site, e.g. http://example.com
debug: false

0 comments on commit c7ef8e5

Please sign in to comment.