Skip to content

Commit

Permalink
STOPPING POINT - not sure whats up, had to come back to this.
Browse files Browse the repository at this point in the history
  • Loading branch information
luukee committed Aug 28, 2024
1 parent fb4c9ef commit 7ec7dae
Show file tree
Hide file tree
Showing 22 changed files with 164 additions and 119 deletions.
22 changes: 14 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ plugins:
- jekyll-remote-theme
- jekyll-toc

collections:
docs:
output: true
permalink: /:collection/:path/

sass:
quiet_deps: true

Expand Down Expand Up @@ -62,14 +67,15 @@ toc:
sublist_class: 'toc-list'
item_class: toc-entry sidebar-nav-item
item_prefix: toc-

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: post
title: "CME (Engage) Website Docs"
layout: docs
title: "mediaengagement.org"
date: 2023-05-21 09:12:12 -0700
categories: docs site
categories: mediaengagement-org
site: https://mediaengagement.org/
site_shortname: mediaengagement.org
excerpt: The core platform for the CME public facing website and peripheral solutions.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Components"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Dashboard"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Deploy to Netlify"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Emulator Tips"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Firebase Setup"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Graphs"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
layout: post
title: "Misinfo Dashboard"
date: 2023-06-21 010:12:12 -0700
layout: docs
title: "Misinfo Dashboard"
date: 2023-06-21 10:12:12 -0700
categories: misinfo-dashboard
site: https://misinfo-dashboard.netlify.app/
site_shortname: misinfo-dashboard.netlify.app
permalink: /docs/misinfo-dashboard/
excerpt: Web dashboard for the misinformation application.
github: https://github.com/engagingnewsproject/misinfo-dashboard
github_shortname: misinfo-dashboard
---

[![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)](https://react.dev/)
Expand All @@ -26,18 +23,18 @@ To learn more about Next.js, take a look at the following resources:

## Table of Contents

- [Installation](misinfo-dashboard/installation.md)
- [Firebase Emulator Tips](misinfo-dashboard/emulator-tips.md)
- [Deploy to Netlify](misinfo-dashboard/deploy.md)
- [User Documentation](misinfo-dashboard/user-documentation.md)
- [Tools](misinfo-dashboard/tools.md)
- [Project Structure](misinfo-dashboard/project-structure.md)
- [Firebase Setup](misinfo-dashboard/firebase.md)
- [Dashboard Components](misinfo-dashboard/dashboard.md)
- [Reports](misinfo-dashboard/reports.md)
- [Tagging System](misinfo-dashboard/tagging-system.md)
- [Graphs](misinfo-dashboard/graphs.md)
- [Components Overview](misinfo-dashboard/components.md)
- [Installation](/docs/misinfo-dashboard/installation/)
- [Firebase Emulator Tips](/docs/misinfo-dashboard/emulator-tips/)
- [Deploy to Netlify](/docs/misinfo-dashboard/deploy-to-netlify/)
- [User Documentation](/docs/misinfo-dashboard/user-documentation/)
- [Tools](/docs/misinfo-dashboard/tools/)
- [Project Structure](/docs/misinfo-dashboard/project-structure/)
- [Firebase Setup](/docs/misinfo-dashboard/firebase/)
- [Dashboard Components](/docs/misinfo-dashboard/dashboard/)
- [Reports](/docs/misinfo-dashboard/reports/)
- [Tagging System](/docs/misinfo-dashboard/tagging-system/)
- [Graphs](/docs/misinfo-dashboard/graphs/)
- [Components Overview](/docs/misinfo-dashboard/components/)

# Links

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: post
layout: docs
title: "Installation"
categories: docs
---

# Installation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Project Structure"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Reports"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Tagging System"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "Tools"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: docs
title: "User Documentation"
---

Expand Down
113 changes: 56 additions & 57 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,63 @@
<div class="sidebar" id="sidebar">

<nav class="sidebar-nav">
<div class="sidebar-item">
<h3 class="masthead-title masthead-title__sidebar">
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
<small>{{ site.tagline }}</small>
</h3>
<!-- {%- if page.path contains 'index' -%}
<sub class="sidebar-nav__page-title">Home</sub>
{%- else -%}
<sub class="sidebar-nav__page-title">{{ page.title }}</sub>
{%- endif -%} -->
</div>
<div class="sidebar-item__main-nav">
{% comment %}
The code below dynamically generates a sidebar nav of pages with
`layout: page` in the front-matter. See readme for usage.
{% endcomment %}

{% assign pages_list = site.posts | sort %}
<ul class="doc-posts-list">
<li class="sidebar-nav__toc-title">
<a href="{{site.baseurl}}/">← Docs</a>
</li>
{% for node in pages_list %}
{% if group == null or group == node.group %}
{% if page.url == node.url %}
<li class="sidebar-nav-item active"><a href="{{node.url}}" class="active">{{node.title}}</a></li>
{% else %}
<li><a class="sidebar-nav-item" href="{{node.url}}">{{node.title}}</a></li>
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
{% assign group = nil %}

{% assign pages_list = site.pages | sort:"url" %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}"
href="{{ node.url | absolute_url }}">{{
node.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
</ul>

<div class="sidebar-item">
<h3 class="masthead-title masthead-title__sidebar">
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
<small>{{ site.tagline }}</small>
</h3>
</div>
<div class="sidebar-item__main-nav">
<p class="sidebar-nav__toc-title">Main Nav</p>

<!-- Main Navigation -->
<div class="doc-posts-list">
{% assign current_collection = page.collection %}
{% assign current_dir = page.dir %}

<!-- Show all base pages -->
{% for collection in site.collections %}

</div>
{%- if page.path contains '_posts' -%}
<div id="table-of-contents" class="sidebar-nav__toc">
<p class="sidebar-nav__toc-title">{{ page.title | escape }}
<span class="subtitle">Table of contents</span>
</p>

{% toc %}
</div>
{%- endif -%}
</nav>
{% if collection.label != 'posts' && page.url == doc.url %}
{% for doc in collection.docs %}
{% if doc.path contains 'index.md' %}
<li class="sidebar-nav-item{% if page.url == doc.url %} active{% endif %}">
<a href="{{ doc.url | relative_url }}">{{ doc.title }}</a>
</li>
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}

<!-- Show subpages only if on a base page or subpage -->
{% if current_dir and current_dir != '/' %}
<ul class="subpage-list">
{% assign parent_dir = current_dir | remove: '/' %}
{% for subpage in site.docs %}
{% if subpage.dir contains parent_dir %}
<li class="sidebar-nav-item{% if page.url == subpage.url %} active{% endif %}">
<a href="{{ subpage.url | relative_url }}">{{ subpage.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}

</div>
</div>

{% if page.path contains '_docs' %}
<div id="table-of-contents" class="sidebar-nav__toc">
<p class="sidebar-nav__toc-title">TABLE OF CONTENTS</p>
{% toc %}
</div>
{% endif %}
</nav>

<pre>
<span>{{ current_collection }}</span>
</pre>

<div class="sidebar-item sidebar-item__footer">
<sub>
Expand Down
43 changes: 43 additions & 0 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: base
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
{%- include post-meta.html post = page -%}

{% comment %}
<p class="post-meta">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}
</p>
{% endcomment %}
</header>

<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>

{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}

<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
Loading

0 comments on commit 7ec7dae

Please sign in to comment.