Skip to content

Commit 4bac3b7

Browse files
committed
Create website
1 parent 27daadf commit 4bac3b7

24 files changed

+525
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site/
2+
.sass-cache/
3+
.jekyll-metadata

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 SampleDataForChange
3+
Copyright (c) 2020 John McCall
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# SampleDataForChange
1+
# Sample Data for Change
22

3-
Repository for the main website
3+
Leveraging sample and example data in technical documentation to increase awareness, diversity, and change in technical fields.

_config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
### your site title here
2+
3+
title: Sample Data for Change
4+
baseurl: /sampledataforchange # name of the repository
5+
email: john@lowlydba.com
6+
7+
8+
9+
highlighter: rouge
10+
markdown: kramdown
11+
12+
13+
# Tracker
14+
analytics:
15+
16+
# Comments
17+
disqus-shortname:
18+
19+
20+
#optimization
21+
#compress.html
22+
compress_html:
23+
clippings: [html,div, p, ul, td, h1, h2, h3, h4,link, meta, footer, nav, img, header, hr, br, head, style, li, ul, ol, time, main, script, title]
24+
comments: ["<!-- ", " -->"]
25+
endings: [all]
26+
ignore:
27+
envs: [local]
28+
blanklines: false
29+
profile: false
30+
startings: []
31+
32+
33+
sass:
34+
style: compressed
35+
36+
#exclude:
37+
#- README.md
38+
39+
plugins:
40+
- jemoji
41+
gems: [jekyll-seo-tag, jekyll-paginate, jemoji]

_includes/analytics.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- Google Analytics Tracking code -->
2+
<script src="https://cdn.jsdelivr.net/npm/ga-lite@1/dist/ga-lite.min.js" async></script>
3+
<script>
4+
var galite = galite || {};
5+
galite.UA = '{{site.analytics}}';
6+
</script>

_includes/disqus.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<hr class="divider">
2+
<div id="disqus_thread"></div>
3+
<script defer>
4+
(function() {
5+
var d = document, s = d.createElement('script');
6+
s.src = '//{{site.disqus-shortname}}.disqus.com/embed.js';
7+
s.setAttribute('data-timestamp', +new Date());
8+
(d.head || d.body).appendChild(s);
9+
})();
10+
</script>
11+
<noscript>Please enable JavaScript to view the comments</noscript>
12+

_layouts/compress.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# Jekyll layout that compresses HTML
3+
# v3.0.1
4+
# http://jch.penibelst.de/
5+
# © 2014–2015 Anatol Broder
6+
# MIT License
7+
---
8+
9+
{% capture _LINE_FEED %}
10+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% assign _lastchar = _pres.last | split: "" | last %}{% assign _outerloop = forloop %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if forloop.last and _lastchar == _LINE_FEED %}{% unless _outerloop.last %}{{ _LINE_FEED }}{% endunless %}{% continue %}{% endif %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}

_layouts/default.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: compress
3+
---
4+
<!DOCTYPE html>
5+
<html>
6+
<head>
7+
<meta charset="utf-8">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
10+
<!-- <link href="https://fonts.googleapis.com/css?family=Lato:900|Work+Sans" rel="stylesheet"> -->
11+
<link rel="stylesheet" href="{{site.baseurl}}/css/main.css">
12+
{% seo %}
13+
</head>
14+
<body style="background-color: rgb(255, 255, 255)">
15+
<script async src="{{site.baseurl}}/js/theme.min.js"></script>
16+
<header>
17+
<!-- <a href="{{site.baseurl}}/"><div class="home"></div></a> -->
18+
</header>
19+
20+
<main>
21+
<article>
22+
{{ content }}
23+
</article>
24+
</main>
25+
26+
<footer>
27+
<div class="links">
28+
<!-- <a href="{{site.baseurl}}/about/">About</a> -->
29+
<a class="theme" onclick="theme()">Dark/Light</a>
30+
</div>
31+
<p class="copy"><small>Copyright {{site.title}} 2020 | Theme developed by <a href="http://webjeda.com">webjeda</a></small></p>
32+
</footer>
33+
{% include analytics.html %}
34+
</body>
35+
</html>

_layouts/post.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<h1 class="post-headline">{{page.title}}</h1>
5+
<p class="meta"><small>{{page.date | date: '%B %d, %Y'}}</small></p>
6+
7+
{{content}}
8+
9+
<!-- Comments only for posts -->
10+
{% if page.path contains '_posts' %}
11+
{% if site.disqus-shortname %}
12+
{% include disqus.html %}
13+
{% endif %}
14+
{% endif %}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: post
3+
title: About
4+
---
5+
6+
Sample Data for Change seeks to leverage sample and example data in
7+
technical documentation and testing to increase awareness, diversity, and change in technology communities.
8+
9+
By doing something as simple as replacing a `Hello World` with facts about issues like systemic racism and human rights violations, we can explicitly choose to impact and embrace positive change in the world.
10+
11+
## How
12+
13+
Due to the vast uniqueness among coding project, the way this
14+
idea is implemented will vary greatly. However, participating projects
15+
should seek to embody the following as closely as possible:
16+
17+
Do:
18+
19+
* Promote objectively important topics, like human rights and [ACLU issues][aclu]
20+
* Integrate into documentation where random examples formerly existed
21+
* Leverage educational data sets for unit testing and demos when appropriate
22+
23+
Don't:
24+
25+
* Promote opinionated topics, like politics or religious beliefs
26+
* Distract from the primary purpose of the documentation
27+
* Decrease accessibility, readability, or functionality
28+
29+
## Participating Projects
30+
31+
*To be added.*
32+
33+
## Join
34+
35+
Want to add your project? [Open an issue][issue] to join and spread the :heart:.
36+
37+
[issue]: https://github.com/LowlyDBA/sampledataforchange/issues
38+
[aclu]: https://www.aclu.org/

0 commit comments

Comments
 (0)