')
- .addClass('OxSerif page')
+ .addClass('Ox____Serif page')
.html(app.html[page].replace(app.re.version[0], app.re.version[1]))
.appendTo($element);
return $element;
@@ -414,7 +436,7 @@ Ox.load(function() {
content: function(id) {
return app.$ui[id] = app.ui[id] ? app.ui[id]() : app.ui.page(id);
},
- size: 40,
+ size: 36,
tabs: app.data.pages
})
.bindEvent({
@@ -423,7 +445,7 @@ Ox.load(function() {
}
}),
$buttonGroup = $panel.find('.OxButtonGroup').css({
- top: '8px'
+ top: '6px'
});
app.patchButtonGroup($buttonGroup);
return $panel;
@@ -471,16 +493,26 @@ Ox.load(function() {
$('.readme .item.selected').removeClass('selected');
id && $('#readme_' + id).addClass('selected');
Ox.get('readme/html/' + (id || '_readme') + '.html', function(html) {
- $text.html(html);
- $text.find('.code').each(function() {
- var $this = $(this);
- $this.replaceWith(
- Ox.SyntaxHighlighter({
- source: $this.text()
- })
- .attr({id: $this.attr('id')})
- );
- });
+ $text.empty()
+ .append(
+ id ? html
+ : $('
')
+ .addClass('Ox___Serif page')
+ .css({
+ margin: '16px',
+ width: window.innerWidth - 640 + 'px'
+ })
+ .html(html)
+ )
+ .find('.code').each(function() {
+ var $this = $(this);
+ $this.replaceWith(
+ Ox.SyntaxHighlighter({
+ source: $this.text()
+ })
+ .attr({id: $this.attr('id')})
+ );
+ });
});
app.url.set('readme' + (id ? '/' + id : ''));
}
@@ -550,10 +582,16 @@ Ox.load(function() {
if (current.page != app.history.page) {
app.$ui.panel.select(current.page);
}
+ if (current.item != app.history.item) {
+ Ox.print('setting selected!')
+ app.$ui[current.page].options({selected: current.item});
+ }
+ /*
if (Ox.in(['readme', 'examples', 'doc'], current.page)) {
Ox.print('cp',current.page, current.item)
app.$ui[current.page].options({selected: current.item});
}
+ */
(!current.page || !app.history.page ? app.animate : Ox.void)(function() {
//app.url.replace(url);
app.history = current;
diff --git a/readme/html/_documentation.html b/readme/html/_documentation.html
index 224d377c..167516f1 100644
--- a/readme/html/_documentation.html
+++ b/readme/html/_documentation.html
@@ -1,2 +1,2 @@
-
Documentation
-
Generated with Ox.doc
. Please note that parts of it may still be incomplete, incorrect or in flux.
\ No newline at end of file
+
Documentation
+
Generated with Ox.doc
. Please note that parts of it may still be incomplete, incorrect or in flux.
\ No newline at end of file
diff --git a/readme/html/_examples.html b/readme/html/_examples.html
index b6742055..5e785326 100644
--- a/readme/html/_examples.html
+++ b/readme/html/_examples.html
@@ -1,2 +1,2 @@
-
Examples
+
Examples
...
\ No newline at end of file
diff --git a/readme/html/_readme.html b/readme/html/_readme.html
index a02508ec..1e5de60c 100644
--- a/readme/html/_readme.html
+++ b/readme/html/_readme.html
@@ -1,2 +1,2 @@
-
Readme
+
Readme
The missing blog. The missing FAQ. The missing manual.
\ No newline at end of file