Skip to content

Commit c0c9d7e

Browse files
committed
Added local image support
1 parent 39d46eb commit c0c9d7e

8 files changed

+140
-11
lines changed

github-markdown.css

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
margin-top: 15px;
128128
margin-bottom: 15px;
129129
line-height: 1.1;
130+
width:85%;
130131
}
131132

132133
.markdown-body h1 {
@@ -316,6 +317,7 @@
316317
.markdown-body pre {
317318
margin-top: 0;
318319
margin-bottom: 16px;
320+
width:85%;
319321
}
320322

321323
.markdown-body hr {

github-wiki.css

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
#logo {
2-
width: 15%;
2+
width: 10%;
33
position: fixed;
4-
right: 0px;
4+
left: 0px;
55
top: 0px;
66
}
77
#edit {
88
padding: 0px;
99
position: fixed;
10-
right: 0px;
10+
left: 0px;
1111
bottom: 20px;
1212
}
1313
.pure-button {
1414
width: 70%;
1515
}
1616
.markdown-body {
17-
left: 0px;
18-
width: 80%;
17+
position:absolute;
18+
left: 10%;
19+
width: 88%;
1920
margin: 0;
20-
padding: 30px;
21+
padding: 1%;
2122
}
23+
.images {
24+
position:absolute;
25+
right: 0%;
26+
width: 15%;
27+
margin: 0;
28+
padding: 0;
29+
}

github-wiki.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,15 @@ function link_converter(md) {
1717
});
1818
}
1919

20-
//Initialize sanitizing converter.
21-
var converter = Markdown.getSanitizingConverter();
20+
//transforms ![image]! into markdown images
21+
function image_converter(md) {
22+
return md.replace(/\!\[([\w\s._0-9\-]+)\]\!/g, function(match, p1, offset, string) {
23+
return "<img src='/images/" + p1 + "' class='images' </img>";
24+
});
25+
}
26+
27+
//Initialize Converter.
28+
var converter = new Markdown.Converter();
2229

2330

2431
//Load Markdown document, convert it and add it to the DOM.
@@ -27,10 +34,15 @@ function load_article(title) {
2734
url: "wiki/" + title + ".md",
2835
success: function(data) {
2936
var lmd = link_converter("# " + title.replace(/_/g, " ") + "\n\n" + data);
37+
lmd = image_converter(lmd);
3038
var html = converter.makeHtml(lmd);
3139
$("#article").empty();
3240
$("#article").append(html);
3341

42+
//Extend the height a few pixels so that all images are shown.
43+
var ah = $("#article").height();
44+
$("#article").height(ah + 200);
45+
3446
//Catch all links and redirect them to the correct url if they are local.
3547
$("a").on("click", function(e) {
3648
var link = $(e.target).attr("href");

images/Infrastructure_diagram.jpg

46.2 KB
Loading

images/readme

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Here we save the images of the wiki.
2+

wiki.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<title>Open Value Networks (OVNS)</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<script type="text/javascript" src="http:////ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Converter.min.js">
7-
</script><script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Sanitizer.min.js">
87
</script><script type="text/javascript" src="github-wiki.js">
98
</script><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet" type="text/css">
109
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
@@ -24,7 +23,7 @@
2423
<a class="pure-button" id="edit_link" href="">Edit</a>
2524
</div>
2625
<div>
27-
<a class="pure-button" href="/Meta:Help_Editing">How to Edit</a>
26+
<a class="pure-button" href="/wiki/Meta:Help_Editing.md">How to Edit</a>
2827
</div>
2928
</div>
3029
</body>

wiki/Infrastructure.md

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
OVNi stands for Open Value Network infrastructure.
2+
3+
**Working definition** of *infrastructure* - a coherent set of tools and processes which support the healthy function of a beneficial system. The infrastructure integrates everything from supply chain to distribution and customer relationships management.
4+
5+
# Development
6+
## Spaces
7+
We are developing a framework for resource management, value accounting and project management on [Value Network on Github](http://github.com/valnet/valuenetwork). See an evolving prototype [here](http://valnet.webfactional.com/).
8+
9+
After the spring of 2014, a new group was formed mostly based in Europe to work on a OVN infrastructure based on semantic web and linked data. See [http://labs.ouishare.net/projects/opennetworks OuiShare labs/Value Networks]
10+
11+
NEWS: After the summer of 2014 a new initiative between OVN developers and Enspiral started to work on a the third generation of the NRO-VAS. See [OVN Sample Data on Github](https://github.com/openvocab/ovn/wiki/OVN-Sample-Data)
12+
13+
14+
Known users of parts of OVNi
15+
* [SENSORICA](http://www.sensorica.co) is a living lab for this model.
16+
* [Guerilla Translation](http://guerrillatranslation.com/) adopted VAS.
17+
* [[add more]]
18+
19+
20+
Discussion groups: [Open Value Network Infrastructure Google Group](https://groups.google.com/forum/#!forum/ovnsinfrastructure), [Open Value Network G+ Community](https://plus.google.com/u/0/communities/107417561773024707336)
21+
22+
Also, watch SENSORICA meetings on Infrastructure see [SENSORICA's Youtube channel](http://www.youtube.com/user/SENSORICAgroup) and search for "infrastructure meeting".
23+
24+
## Active developers
25+
The most active developers at this time are [Bob Haugen](http://plus.google.com/u/0/113885495827197979519/about), [Lynn Foster](https://plus.google.com/u/0/117655697495578168334/posts), [Tiberius Brastaviceanu](http://plus.google.com/117593809719446924575/about), [Francois Bergeron](http://plus.google.com/116029027511536438331/about), [Ampie Bernard](https://plus.google.com/u/0/114765853030329012951/posts).
26+
27+
Other contributors are: [[Kurt Laitner]], [[Steve Bosserman]], [[Ian Bentley]]... [please add your name here...]
28+
29+
30+
**You want to get involved?**
31+
32+
[https://github.com/valnet/valuenetwork/wiki/Help Description of needs for the value accounting system (VAS) on github].
33+
34+
# Theory
35+
The [[value network]] is modeled as a living system. Infrastructure design is adjusted for optimal performance of the individual [[value network]] in terms of creativity, productivity, synchronicity, quality assurance, responsiveness, adaptability...and any other explicit objectives. The [[value network]] must also respond to ethical requirements (see the [[Ethos]] page).
36+
37+
## Maps of the Infrastructure
38+
* [http://metamaps.cc/maps/468 latest map on the general layout (high level)]
39+
* [http://metamaps.cc/maps/435 remap the infrastructure on metamaps.cc]
40+
* [an alternative map of the infrastructure](http://metamaps.cc/maps/439)
41+
* [OVN Protocols Conversation](http://metamaps.cc/maps/437)
42+
* Bob's [- OVN-OS architecture layout](http://metamaps.cc/maps/442) for an open value network node
43+
* Bob's [- OVN-OS internetworking protocol](http://metamaps.cc/maps/437), for network to network interaction
44+
45+
## Requirements
46+
* [[Network of Networks]]
47+
See SENSORICA's development of the [Open Alliance](http://www.sensorica.co/home/working-space/labonline-network/montreal-labonline/project-vie/the-open-alliance), which is a growing integrated and fractal open value network to which we apply the idea of networks of networks.
48+
49+
### List of modules
50+
NOTE: The following tree representation is inadequate. Think of it as a list. All the components are mapped more precisely in the Maps above.
51+
52+
{March 25th, 2014} Bob has proposed the *Stop and Rethink* initiative on VAS. [Open document](https://docs.google.com/document/d/1FKyn84Rz4YYJe1USRWnu73A4rV3BIKBfXZt0WuOK8jk/edit#heading=h.9aj4y11z1knd) {delete after initiative ends}
53+
54+
55+
56+
![Infrastructure_diagram.jpg]!
57+
58+
* [[Individual profile]]
59+
* [[Dashboard]]
60+
* [[Communication]]
61+
* [[Coordination]]
62+
* [[Collaboration]]
63+
* [[Value system]]
64+
* [[Value accounting system]]
65+
* [[Contributions log]]
66+
* [[Evaluation]]
67+
* [[The value equation]]
68+
* [[Internetworking protocol]]
69+
* [[Value exchange system]]
70+
* [[Process management]]
71+
* [[Project and task management]]
72+
* [[Timetable]]
73+
* [[Supply chain management system]]
74+
* [[NRP for value networks]]
75+
* [[CRM for value networks]]
76+
* [[Information and knowledge management]]
77+
* Innovation tools
78+
* [[Open hardware and software repository and versioning]]
79+
* [[Discovery tool]]
80+
* [[Sensemaking]]
81+
* [[Self organization]]
82+
* [[Reputation system]]
83+
* [[Role system]]
84+
* [[Feedback system]]
85+
* [[Governance]]
86+
* [[Decision making]]
87+
* [[Normative system]]
88+
* [[Legal framework]]
89+
* [[Labonline network]] - collaboration spaces
90+
* [[Search system]]
91+
* [[Dynamic transfer of responsibility]]
92+
93+
# Praxis
94+
## Concrete examples of infrastructures
95+
* [[SENSORICA's Google-based value accounting system]]
96+
* [SENSORICA](http://www.SENSORICA.co) new infrastructure, see [prototype in development](http://valnet.webfactional.com/)
97+

wiki/Meta:Help_Editing.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
How to Edit
2-
===========
2+
-----------
33

44
In order to create or edit a document ,you need to:
55

@@ -9,3 +9,12 @@ In order to create or edit a document ,you need to:
99
4. Make a pull request to the original project.
1010

1111
After all these, one of the member of the community, reviews the changes and accepts them.
12+
13+
14+
Syntax
15+
------
16+
17+
The wiki syntax is Markdown with a few additions:
18+
19+
* \[\[term\]\] links to the article with title term.
20+
* \!\[image_file\]\! shows the local image file /images/image_file on the right column of the wiki at the height it was written.

0 commit comments

Comments
 (0)