Browse Source

Added Library for published Rules

Nathan Schneider 4 years ago
parent
commit
14ec4f2b59
4 changed files with 7 additions and 4 deletions
  1. 2 1
      _about/faq.md
  2. 1 0
      _includes/footer.html
  3. 3 2
      _layouts/rule.html
  4. 1 1
      index.md

+ 2 - 1
_about/faq.md

@@ -32,6 +32,7 @@ A bunch of stuff, and we have a running list in the [Issues on GitLab](https://g
 
 **What projects does this draw upon?**
 
+* Created with [Jekyll](https://jekyllrb.com/) (MIT License), hosted on [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/)
 * Modules are from [Democratic Mediums](http://democraticmediums.info) (CC-BY)
 * Icons are from [Tabler](https://github.com/tabler/tabler-icons) (MIT License)
-* Database runs on [Stein](https://steinhq.com/) (MIT), using [this Google Doc](https://docs.google.com/spreadsheets/d/12IgsMWZNzPv2nS7ksU6CUozcS6YYwRn9O1iIXKat3V4/edit?usp=sharing)
+* Database runs on [Stein](https://steinhq.com/) (MIT License), using [this Google Doc](https://docs.google.com/spreadsheets/d/12IgsMWZNzPv2nS7ksU6CUozcS6YYwRn9O1iIXKat3V4/edit?usp=sharing)

+ 1 - 0
_includes/footer.html

@@ -37,6 +37,7 @@
 
       <div class="footer-col footer-col-3">
         <p style="text-align:right;">{{ site.description }}</p>
+        <p style="text-align:right;">Help improve CommunityRule by <br />posting an <a href="https://gitlab.com/medlabboulder/communityrule/-/issues">Issue</a> or <a href="https://gitlab.com/medlabboulder/communityrule">editing the source directly</a></p>
         <p style="text-align:right;"><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a></p>
       </div>
     </div>

+ 3 - 2
_layouts/rule.html

@@ -207,7 +207,7 @@ layout: default
       var fields = document.getElementsByClassName("editable");
       for (var i = 0; i < fields.length; i++) {
           var key = fields[i].id;
-          var value = fields[i].innerHTML;
+          var value = fields[i].innerHTML.replace(/(<([^>]+)>)/ig,"");
           rule[0][key] = value;
       }
       const store = new SteinStore(
@@ -398,7 +398,8 @@ layout: default
     <p><a href="http://communityrule.info">
         <img src="https://img.shields.io/badge/CommunityRule-derived-000000" alt="CommunityRule derived"></a></p>
     <p>Created with <a href="http://communityrule.info">CommunityRule</a><br />
-        <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons BY-SA</a></p>
+      <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons BY-SA</a></p>
+    <p><strong>The Publish feature is experimental. Rules may be removed without notice</strong></p>
   </div>
   <div id="attributionMD" style="display:none;">
 ---

+ 1 - 1
index.md

@@ -12,4 +12,4 @@ permalink: /
 
 Too often, we leave the most basic questions unstated and unanswered. CommunityRule makes it easier to clarify the basics so you can focus on other stuff.
 
-**[Start from scratch]({% link create.md %}) or [choose a template]({% link templates.md %}) to begin.**
+**[Start from scratch]({% link create.md %}) or [choose a template]({% link templates.md %}) to begin. Then publish your Rule and [share it]({% link library.md %}) with others.**