Remove all instances of baseurl

rocksdb hit the problem that nuclide had.

https://github.com/facebook/nuclide/issues/789
https://github.com/facebook/nuclide/pull/793
main
Joel Marcey 8 years ago
parent 437942e481
commit 557034f362
  1. 1
      docs/_config.yml
  2. 5
      docs/_config_local_dev.yml
  3. 9
      docs/_includes/blog_pagination.html
  4. 4
      docs/_includes/doc.html
  5. 14
      docs/_includes/head.html
  6. 4
      docs/_includes/header.html
  7. 2
      docs/_includes/home_header.html
  8. 4
      docs/_includes/nav.html
  9. 4
      docs/_includes/plugins/post_social_plugins.html
  10. 4
      docs/_includes/post.html
  11. 2
      docs/blog/all.html
  12. 20
      docs/css/main.scss
  13. 8
      docs/feed.xml

@ -10,7 +10,6 @@ gacode: "UA-49459723-1"
# organisation.github.io/reponame/ basic site URL, then baseurl would be set # organisation.github.io/reponame/ basic site URL, then baseurl would be set
# as "/reponame/" but leave blank if you have a top-level domain URL # as "/reponame/" but leave blank if you have a top-level domain URL
# https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/ # https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/
baseurl: ""
url: "http://rocksdb.org" # the base hostname & protocol for your site url: "http://rocksdb.org" # the base hostname & protocol for your site
ghrepo: "facebook/rocksdb" ghrepo: "facebook/rocksdb"

@ -1,6 +1,5 @@
# Local development config settings to over-ride base. # Local development config settings to over-ride base.
# `jekyll serve` will by default generate a webserver at localhost:4000, so # `jekyll serve` will by default generate a webserver at localhost:4000, so
# only change `url` if you're using a non-default location. # only change `url` if you're using a non-default location.
baseurl: "" url: "http://127.0.0.1:4000"
url: "http://127.0.0.1:4000"

@ -3,7 +3,7 @@
<br /> <br />
<div class="pagination"> <div class="pagination">
{% if paginator.previous_page %} {% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a> <a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; Prev</a>
{% else %} {% else %}
<span>&laquo; Prev</span> <span>&laquo; Prev</span>
{% endif %} {% endif %}
@ -12,18 +12,17 @@
{% if page == paginator.page %} {% if page == paginator.page %}
<em>{{ page }}</em> <em>{{ page }}</em>
{% elsif page == 1 %} {% elsif page == 1 %}
<a href="{{ '/blog' | prepend: site.baseurl }}">{{ page }}</a> <a href="/blog">{{ page }}</a>
{% else %} {% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a> <a href="{{ site.paginate_path | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if paginator.next_page %} {% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a> <a href="{{ paginator.next_page_path | replace: '//', '/' }}">Next &raquo;</a>
{% else %} {% else %}
<span>Next &raquo;</span> <span>Next &raquo;</span>
{% endif %} {% endif %}
</div> </div>
<br /> <br />
{% endif %} {% endif %}

@ -1,6 +1,6 @@
<div class="post"> <div class="post">
<header class="post-header"> <header class="post-header">
<h1 class="post-title">{% if include.truncate %}<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1> <h1 class="post-title">{% if include.truncate %}<a href="{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
</header> </header>
<article class="post-content"> <article class="post-content">
@ -8,7 +8,7 @@
{% if page.content contains '<!--truncate-->' %} {% if page.content contains '<!--truncate-->' %}
{{ page.content | split:'<!--truncate-->' | first }} {{ page.content | split:'<!--truncate-->' | first }}
<div class="read-more"> <div class="read-more">
<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}" > <a href="{{ page.url }}" >
...Read More ...Read More
</a> </a>
</div> </div>

@ -3,14 +3,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" /> <meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}" />
<meta property="og:site_name" content="{{ site.title }}"/> <meta property="og:site_name" content="{{ site.title }}"/>
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" /> <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta property="og:image" content="{{ site.url }}{{ site.baseurl }}/static/og_image.png" /> <meta property="og:image" content="{{ site.url }}/static/og_image.png" />
<meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" /> <meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />
<link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}/css/main.css" media="screen"> <link rel="stylesheet" href="{{ site.url }}/css/main.css" media="screen">
<link rel="icon" href="{{ site.url }}{{ site.baseurl }}/static/favicon.png" type="image/x-icon"> <link rel="icon" href="{{ site.url }}/static/favicon.png" type="image/x-icon">
{% if site.searchconfig %} {% if site.searchconfig %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
{% endif %} {% endif %}
@ -18,8 +18,8 @@
<title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title> <title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<base href="{{ site.url }}{{ site.baseurl }}/" /> <base href="{{ site.url }}/" />
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" /> <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.url }}" />
</head> </head>

@ -1,7 +1,7 @@
<div class="headerContainer"> <div class="headerContainer">
<div id="header_wrap" class="wrapper headerWrapper"> <div id="header_wrap" class="wrapper headerWrapper">
<div class="inner"> <div class="inner">
<img class="projectLogo" height="200px" src="{{ site.baseurl }}/static/logo.svg" alt="{{ site.title }}" title="{{ site.title }}" /> <img class="projectLogo" height="200px" src="/static/logo.svg" alt="{{ site.title }}" title="{{ site.title }}" />
<h1 id="project_title">{{ site.title }}</h1> <h1 id="project_title">{{ site.title }}</h1>
<h2 id="project_tagline" class="fbossFontLight">{{ site.tagline }}</h2> <h2 id="project_tagline" class="fbossFontLight">{{ site.tagline }}</h2>
@ -16,4 +16,4 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>

@ -15,7 +15,7 @@
</div> </div>
</div> </div>
<div class="projectLogo"> <div class="projectLogo">
<img src="{{ site.baseurl }}/static/logo.svg" alt="{{ site.title }}"> <img src="/static/logo.svg" alt="{{ site.title }}">
</div> </div>
</div> </div>
</div> </div>

@ -1,8 +1,8 @@
<div id="fixed_header" class="fixedHeaderContainer{% if include.alwayson %} visible{% endif %}"> <div id="fixed_header" class="fixedHeaderContainer{% if include.alwayson %} visible{% endif %}">
<div class="headerWrapper wrapper"> <div class="headerWrapper wrapper">
<header> <header>
<a href="{{ site.url }}{{ site.baseurl }}/"> <a href="{{ site.url }}/">
<img src="{{ site.baseurl }}/static/logo.svg"> <img src="/static/logo.svg">
<h2>{{ site.title }}</h2> <h2>{{ site.title }}</h2>
</a> </a>

@ -2,12 +2,12 @@
<a <a
href="https://twitter.com/share" href="https://twitter.com/share"
class="twitter-share-button" class="twitter-share-button"
data-url="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" data-url="{{ page.url | replace:'index.html','' | prepend: site.url }}"
data-text="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" data-text="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"
data-hashtags="flowtype">Tweet</a> data-hashtags="flowtype">Tweet</a>
<div <div
class="fb-like" class="fb-like"
data-href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" data-href="{{ page.url | replace:'index.html','' | prepend: site.url }}"
data-layout="button_count" data-layout="button_count"
data-action="like" data-action="like"
data-show-faces="false" data-show-faces="false"

@ -9,7 +9,7 @@
{% if author.full_name %} {% if author.full_name %}
<p class="post-authorName">{{ author.full_name }}</p> <p class="post-authorName">{{ author.full_name }}</p>
{% endif %} {% endif %}
<h1 class="post-title">{% if include.truncate %}<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1> <h1 class="post-title">{% if include.truncate %}<a href="{{ site.url }}{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<p class="post-meta">Posted {{ page.date | date: '%B %d, %Y' }}{% if page.meta %} • {{ page.meta }}{% endif %}</p> <p class="post-meta">Posted {{ page.date | date: '%B %d, %Y' }}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header> </header>
@ -18,7 +18,7 @@
{% if page.content contains '<!--truncate-->' %} {% if page.content contains '<!--truncate-->' %}
{{ page.content | split:'<!--truncate-->' | first | markdownify }} {{ page.content | split:'<!--truncate-->' | first | markdownify }}
<div class="read-more"> <div class="read-more">
<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}" > <a href="{{ site.url }}{{ page.url }}" >
Read More Read More
</a> </a>
</div> </div>

@ -11,7 +11,7 @@ category: blog
{% assign author = site.data.authors[post.author] %} {% assign author = site.data.authors[post.author] %}
<p> <p>
<strong> <strong>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> <a href="{{ post.url }}">{{ post.title }}</a>
</strong> </strong>
on {{ post.date | date: "%B %e, %Y" }} by {{ author.display_name }} on {{ post.date | date: "%B %e, %Y" }} by {{ author.display_name }}
</p> </p>

@ -5,40 +5,40 @@
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
src: url('{{ site.baseurl }}/static/fonts/LatoLatin-Italic.woff2') format('woff2'), src: url('/static/fonts/LatoLatin-Italic.woff2') format('woff2'),
url('{{ site.baseurl }}/static/fonts/LatoLatin-Italic.woff') format('woff'); url('/static/fonts/LatoLatin-Italic.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
src: url('{{ site.baseurl }}/static/fonts/LatoLatin-Black.woff2') format('woff2'), src: url('/static/fonts/LatoLatin-Black.woff2') format('woff2'),
url('{{ site.baseurl }}/static/fonts/LatoLatin-Black.woff') format('woff'); url('/static/fonts/LatoLatin-Black.woff') format('woff');
font-weight: 900; font-weight: 900;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
src: url('{{ site.baseurl }}/static/fonts/LatoLatin-BlackItalic.woff2') format('woff2'), src: url('/static/fonts/LatoLatin-BlackItalic.woff2') format('woff2'),
url('{{ site.baseurl }}/static/fonts/LatoLatin-BlackItalic.woff') format('woff'); url('/static/fonts/LatoLatin-BlackItalic.woff') format('woff');
font-weight: 900; font-weight: 900;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
src: url('{{ site.baseurl }}/static/fonts/LatoLatin-Light.woff2') format('woff2'), src: url('/static/fonts/LatoLatin-Light.woff2') format('woff2'),
url('{{ site.baseurl }}/static/fonts/LatoLatin-Light.woff') format('woff'); url('/static/fonts/LatoLatin-Light.woff') format('woff');
font-weight: 300; font-weight: 300;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
src: url('{{ site.baseurl }}/static/fonts/LatoLatin-Regular.woff2') format('woff2'), src: url('/static/fonts/LatoLatin-Regular.woff2') format('woff2'),
url('{{ site.baseurl }}/static/fonts/LatoLatin-Regular.woff') format('woff'); url('/static/fonts/LatoLatin-Regular.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }

@ -6,8 +6,8 @@ layout: null
<channel> <channel>
<title>{{ site.title | xml_escape }}</title> <title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description> <description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link> <link>{{ site.url }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/> <atom:link href="{{ "/feed.xml" | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate> <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator> <generator>Jekyll v{{ jekyll.version }}</generator>
@ -16,8 +16,8 @@ layout: null
<title>{{ post.title | xml_escape }}</title> <title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description> <description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate> <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link> <link>{{ post.url | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid> <guid isPermaLink="true">{{ post.url | prepend: site.url }}</guid>
{% for tag in post.tags %} {% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category> <category>{{ tag | xml_escape }}</category>
{% endfor %} {% endfor %}

Loading…
Cancel
Save