Selaa lähdekoodia

regenerated doc and incremented docer image version

Harlan Iverson 6 vuotta sitten
vanhempi
commit
84b40599eb

+ 2 - 2
app/resources/templates/md/pages/doc-CONTRIBUTING.md

@@ -2,8 +2,8 @@
  :title "Doc: CONTRIBUTING"
  :page-index 4000
  :navbar? false
- :generated-at 1526597700
- :last-modified 1526522778
+ :generated-at 1539652323
+ :last-modified 1530637082
  }
 
 # Contributing to iSpooge Live

+ 3 - 3
app/resources/templates/md/pages/doc-PERSONAS.md

@@ -1,9 +1,9 @@
 {:layout :page
  :title "Doc: PERSONAS"
- :page-index 4006
+ :page-index 4001
  :navbar? false
- :generated-at 1526597700
- :last-modified 1525810988
+ :generated-at 1539652323
+ :last-modified 1530637082
  }
 
 # Personas who may use the system.

+ 3 - 3
app/resources/templates/md/pages/doc-ROADMAP.md

@@ -1,9 +1,9 @@
 {:layout :page
  :title "Doc: ROADMAP"
- :page-index 4004
+ :page-index 4002
  :navbar? false
- :generated-at 1526597700
- :last-modified 1525805942
+ :generated-at 1539652323
+ :last-modified 1530637082
  }
 
 We consciously do not have a roadmap. 

+ 3 - 3
app/resources/templates/md/pages/doc-THANKS.md

@@ -1,9 +1,9 @@
 {:layout :page
  :title "Doc: THANKS"
- :page-index 4005
+ :page-index 4003
  :navbar? false
- :generated-at 1526597700
- :last-modified 1526420298
+ :generated-at 1539652323
+ :last-modified 1530637082
  }
 
 # Thanks

+ 3 - 3
app/resources/templates/md/pages/doc-features.md

@@ -1,9 +1,9 @@
 {:layout :page
  :title "Doc: features"
- :page-index 4002
+ :page-index 4004
  :navbar? false
- :generated-at 1526597700
- :last-modified 1526595907
+ :generated-at 1539652323
+ :last-modified 1530637082
  }
 
 # Features

+ 3 - 3
app/resources/templates/md/pages/doc-glossary.md

@@ -1,9 +1,9 @@
 {:layout :page
  :title "Doc: glossary"
- :page-index 4001
+ :page-index 4005
  :navbar? false
- :generated-at 1526597700
- :last-modified 1526522823
+ :generated-at 1539652323
+ :last-modified 1530637082
  }
 
 # Glossary

+ 41 - 3
app/resources/templates/md/pages/doc-operations.md

@@ -1,9 +1,9 @@
 {:layout :page
  :title "Doc: operations"
- :page-index 4003
+ :page-index 4006
  :navbar? false
- :generated-at 1526597700
- :last-modified 1526513584
+ :generated-at 1539652323
+ :last-modified 1539652313
  }
 
 # Vodcast Origin Operations
@@ -68,6 +68,44 @@ The video page has in the EDN header
 ```
 
 
+## Create a web app
+
+Adding a new webapp is like adding a web page, but also involves adding a script and interacts
+with the page DOM.
+
+The DOM is generated by Selmer and the path of least resistance to access the DOM is via
+headers with deterministic ID values generated, and then replacing the node or accessing siblings
+for input data.
+
+Since our source file is a Markdown file with an EDN header, we can include script 
+by specifying the path in a template. We should start by creating a template with 
+the same name as the page, starting with the template we usually use (eg. :page).
+
+
+### Reading data from a table
+
+The code below will set a known ID onto a data table immediately following a known header.
+
+We can inspect the code of some generated pages and find the pattern of element names for
+H1 headers is to lowercase the name and replace spaces with underscores. From there, we can 
+find the next element of type table and then assign it an ID. We can then operate on the new
+element in any way that we wish.
+
+```
+function HACK_identifyData () {
+  var el = document.getElementById('roles_by_project');
+  while( el && el.nodeName.toLowerCase() != 'table') {
+    el = el.nextSibling;
+  }
+  if (el) {
+    el.setAttribute('id', 'roles_by_project_data');
+  }
+}
+HACK_identifyData();
+```
+
+
+
 That's it... see the `Add a page` section for more details.
 
 ## Import a video from YouTube

+ 1 - 1
scripts/env.sh

@@ -24,7 +24,7 @@ IMAGE_STATIC=docker-registry.local:5000/ispooge.com/ispooge-static:28
 IMAGE_STATIC_LOCAL=ispooge-static
 
 NAME_STREAMING=ispooge.com-streaming
-IMAGE_STREAMING=docker-registry.local:5000/ispooge.com/ispooge-streaming:3
+IMAGE_STREAMING=docker-registry.local:5000/ispooge.com/ispooge-streaming:4
 IMAGE_STREAMING_LOCAL=ispooge-streaming
 
 if [ -f scripts/env-local.sh ]; then