Browse Source

Update homepage, remove Google spying

master
Skylar Ittner 4 months ago
parent
commit
e1eb15c5f5
4 changed files with 34 additions and 1 deletions
  1. 10
    0
      docs/assets/font.css
  2. 13
    0
      docs/assets/track.js
  3. 5
    0
      docs/index.md
  4. 6
    1
      mkdocs.yml

+ 10
- 0
docs/assets/font.css View File

@@ -0,0 +1,10 @@
1
+ @import url("https://static.netsyms.net/fonts/roboto/Roboto.css");
2
+ @import url("https://static.netsyms.net/fonts/roboto-mono/Roboto_Mono.css");
3
+ 
4
+body, input {
5
+    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
6
+}
7
+pre, code, kbd {
8
+    font-family: "Roboto Mono", "Courier New",
9
+    Courier, monospace;
10
+}

+ 13
- 0
docs/assets/track.js View File

@@ -0,0 +1,13 @@
1
+  var _paq = _paq || [];
2
+  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
3
+  _paq.push(["setCookieDomain", "*.contributor.codes"]);
4
+  _paq.push(['trackPageView']);
5
+  _paq.push(['enableLinkTracking']);
6
+  _paq.push(["setDoNotTrack", true]);
7
+  (function() {
8
+    var u="https://analytics.netsyms.net/";
9
+    _paq.push(['setTrackerUrl', u+'piwik.php']);
10
+    _paq.push(['setSiteId', '24']);
11
+    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
12
+    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
13
+  })();

+ 5
- 0
docs/index.md View File

@@ -1,4 +1,9 @@
1 1
 Title: Home
2 2
 
3
+# Contributor Codes
4
+
3 5
 This website is dedicated to collecting and critiquing codes of conduct for open source projects, in a similar fashion to TLDRLegal.
4 6
 
7
+## Help us out
8
+
9
+[Click here](https://source.netsyms.com/skylarmt/Contributor.Codes) to view the source code for this site and to contribute.  We welcome additional codes of conduct.

+ 6
- 1
mkdocs.yml View File

@@ -1,5 +1,10 @@
1 1
 site_name: Contributor Codes
2 2
 theme:
3
-    name: 'mkdocs'
3
+    name: 'material'
4
+    font: false
4 5
 plugins:
5 6
     - search
7
+extra_javascript:
8
+    - "assets/track.js"
9
+repo_name: 'Source Code'
10
+repo_url: 'https://source.netsyms.com/skylarmt/Contributor.Codes'

Loading…
Cancel
Save