Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Improved README.md for local development #109

Open
wants to merge 4 commits into
base: gh-pages
Choose a base branch
from
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
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##
##

The [Office of Management and Budget (OMB)](https://www.whitehouse.gov/omb/) has issued the [Data Center Optimization Initiative (DCOI)](https://www.whitehouse.gov/sites/default/files/omb/memoranda/2016/m_16_19_1.pdf) to advance the consolidation and optimization of the Federal Government’s inventory of data centers. The DCOI supersedes the Federal Data Center Consolidation Initiative (FDCCI) and addresses requirements in the Federal Information Technology Acquisition Reform Act (FITARA).

Expand All @@ -24,10 +24,16 @@ Install dependencies with Bundler:
bundle install
```

For local development, uncomment the following line in `_config.yml`:

```
baseurl: /datacenters/
```

And run the site with Jekyll:

```
bundle exec jekyll serve --watch
```

If all goes well, visit the site at `http://localhost:4000`.
If all goes well, visit the site at `http://localhost:4000/datacenters/`.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ name: "Datacenters.cio.gov"
description: "Data Center Optimization Initiative (DCOI)"
baseurl: https://datacenters.cio.gov/
# Uncomment the following line for localhost development at http://127.0.0.1:4000/datacenters/
#baseurl: /datacenters/
#baseurl: /datacenters

# GitHub information
org_name: whitehouse
Expand Down
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<li class="{{ current }}">
{% if sublink.url %}
<a href="{{ sublink.url }}">{{ sublink.text }}</a>
<a href="{{ site.baseurl }}{{ sublink.url }}">{{ sublink.text }}</a>
{% else %}
<span class="sidebar-heading" style="font-size:16px;padding:10px; line-height:1.4em;font-weight:normal">{{ sublink.text }}</span>
{% endif %}
Expand Down