From 55f62c1acb4bb802d0bba9df98e6e7bddc568712 Mon Sep 17 00:00:00 2001
From: Lilian Besson
Date: Tue, 22 Mar 2016 09:56:17 +0100
Subject: [PATCH] Add a nonavbarfixed=y option to disable the fixed top nav-bar
(someone asked for this feature, here it is).
---
index.htm | 33 ++++++++++++++++++-----------
index.html | 48 ++++++++++++++++++++++++++++---------------
index.pdf | Bin 95018 -> 95400 bytes
strapdown.js | 12 ++++++++---
strapdown.min.js | 2 +-
strapdown.verbose.js | 16 ++++++++++-----
6 files changed, 74 insertions(+), 37 deletions(-)
diff --git a/index.htm b/index.htm
index ca02387..8616dcf 100644
--- a/index.htm
+++ b/index.htm
@@ -1,4 +1,4 @@
-StrapDown.js on GitHub/Naereen/
+StrapDown.js on lbesson.bitbucket.org/md
StrapDown.js
StrapDown.js is an awesome on-the-fly Markdown
@@ -8,25 +8,26 @@ to HTML https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js to load the script from a quick and secure (HTTPS-aware) CDN.
-
comes with many examples: first, second, third, 4th, 5th, 6th, 7th...
+quick and secure, thanks to Bitbucket and their SSL support (even if the certificate is not valid for https://lbesson.bitbucket.org, it is still secure),
+comes with many examples: first, second, third, 4th, 5th, 6th, 7th, 8th...
an almost perfect support for text-only browsers (as w3m, links, or elinks): pure Markdown is simpler to read than complicated HTML full of javascript, images (or worse),
no external dependencies other than itself (and MathJax if you want to include it),
-no spying, no logging, no external leaking of your pages (and Google Analytics with a 1px beacon image can be included with an option,
+no spying, no logging, no external leaking of your pages (and Google Analytics with a 1px beacon image can be included with an option, and unfortunately rum.js from Bitbucket hosting server),
an excellent support of MathJax, as shown in this example or that one,
and, the last but not the least, an experimental embedding of the awesome SquirtFR bookmarklet to read as quickly as Lucky Luke.
+Note : You can also use https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js to have a true HTTPS support, by loading the script from a quick and secure (HTTPS-aware) CDN.
Drawbacks?
But there is also have a few things you need to know before using it:
- It might get slow for very long pages, even if a 3000-line document is handled very well and quickl (you can test by yourself with this long document),
- a reduced support for browsers without javascript or with javascript disabled (the pages are still readable, but really ugly),
-- hosted on GitHub and served by rawgit, which are wonderful but might not be always available.
+- hosted on Bitbucket, which is wonderful but might not be always available (~ 3 hours of maintenance every 6 months, as shown with a small screenshot below).
Concretely
-Concretely, GitHub is always up, secured and quick (oooh, and it is also awesome, completely free, and awesome too). Yeah, is it so awesome that I had to say it twice, you read it correctly!
+Concretely, Bitbucket is always up, secured and quick (oooh, and Bitbucket is also awesome, completely free, and awesome too). Yeah, Bitbucket is so awesome that I had to say it twice, you read it correctly!
But if you prefer, feel free to download the project (with StrapDown.js.zip) and upload it somewhere on your own server, or locally on your machine.
-As the script is hosted on GitHub, it can be loaded quickly and securely from cdn.rawgit.com: https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js!
+The script is also hosted on GitHub and so it can be loaded quickly and securely from cdn.rawgit.com: https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js!
My version of StrapDown.js is a fork of strapdownjs.com, a cool project that kinda seems dead by now.
@@ -101,13 +102,12 @@ as shown in these three examples: example n°3 and <
cyborg, as used by the first two examples (and a demo on bootswatch.com/cyborg),
and united (as used one this very page that you are reading!), inspired from ubuntu (and a demo on bootswatch.com/united).
-I recently added some new themes, and now there is these 9 new themes.
+I recently added some new themes, and now there is these 9 new themes.
Cloning the StrapDown.js project?
-As of now, StrapDown.js does not have it own git repository.
-And I don't want to, because it is cleaner to let it live on http://lbesson.bitbucket.org/md.
+git clone https://github.com/Naereen/StrapDown.js
-But, there, you can easily download this up-to-date version of the md subdir of my lbesson.bitbucket.org repository:
+
You can also easily download this up-to-date version of the md subdir of my lbesson.bitbucket.org repository:
StrapDown.js.zip
(and its PGP signature).
@@ -128,6 +128,12 @@ It has a perfect support for Markdown markup.
Future features or ideas?
+-
+
Improve the SSL certificate? As that screenshot shows, SSL is available, but the certificate is not valid (it has been signed only for bitbucket.org and www.bitbucket.org):
+
+-
+
Maybe host it on a CDN?
+
- Hack something to force using local cached version of the script and stylesheets rather than downloading them every time?
-
More "quick access" buttons on the top-navbar? (there is already a button to use Squirt (as shown in the example below), one to activate MathJax, and one to test a Google Analytics Beacon image.)
@@ -148,6 +154,7 @@ It has a perfect support for Markdown markup.
About
+© 2013-2016
Languages
- Markdown;
@@ -155,6 +162,8 @@ It has a perfect support for Markdown markup.
- CSS 3.
License
-This project is released under the MIT license, for more details, take a look at the LICENSE file in the source.
+This project is released under the GPLv3 license, for more details,
+take a look at the LICENSE file in the source.
+Basically, that allow you to use all or part of the project for you own business.
diff --git a/index.html b/index.html
index ed67de4..44c7bf3 100644
--- a/index.html
+++ b/index.html
@@ -1,4 +1,4 @@
-StrapDown.js on GitHub/Naereen/
+StrapDown.js on lbesson.bitbucket.org/md
# StrapDown.js
**StrapDown.js** is an awesome **on-the-fly** [Markdown](https://en.wikipedia.org/wiki/Markdown)
to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipedia.org/wiki/Compiler).
@@ -8,13 +8,14 @@ to [HTML](https://en.wikipedia.org/wiki/HTML) [text processor](https://en.wikipe
1. *Directly write your documents in Markdown*, and let the browser do the boring *compilation* steps,
2. no need for CSS, theming or painful styling: *StrapDown.js* is already *friggin' beautiful*, and *responsive*,
- 3. *quick* and *secure*, thanks to *GitHub* and their great SSL support. Note : You can also use [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js) to load the script from a quick and secure (HTTPS-aware) CDN.
- 4. comes with many examples: first, second, third, 4th, 5th, 6th, 7th...
+ 3. *quick* and *secure*, thanks to *Bitbucket* and their SSL support (even if the certificate is not valid for [https://lbesson.bitbucket.org](https://lbesson.bitbucket.org), it is still secure),
+ 4. comes with many examples: first, second, third, 4th, 5th, 6th, 7th, 8th...
5. an almost perfect support for *text-only* browsers (as w3m, links, or elinks): *pure Markdown* is simpler to read than complicated HTML full of javascript, images (or worse),
6. no external dependencies other than itself (and [MathJax](http://www.mathjax.org/) if you want to include it),
- 7. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option,
+ 7. no spying, no logging, no external leaking of your pages (and [Google Analytics with a 1px beacon image](http://perso.crans.org/besson/beacon.html) can be included with an option, and unfortunately [rum.js from Bitbucket hosting server](https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket#PublishingaWebsiteonBitbucket-TechnicalFeaturesandLimitationsofthisFeature)),
8. an excellent support of [*MathJax*](http://www.mathjax.org/), as shown in [this example](example3.html) or [that one](example5.html),
9. and, the last but not the least, an *experimental* embedding of the awesome [SquirtFR](http://lbesson.bitbucket.org/squirt) bookmarklet to read *as quickly as Lucky Luke*.
+ 10. Note : You can also use [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js) to have a true HTTPS support, by loading the script from a quick and secure (HTTPS-aware) CDN.
## Drawbacks?
@@ -22,14 +23,17 @@ But there is also have a few things you need to know before using it:
1. It might get slow for *very long* pages, even if a **3000-line** document is handled very well and quickl ([you can test by yourself with this long document](3000.html)),
2. a reduced support for browsers *without javascript* or *with javascript disabled* (the pages are still readable, but really *ugly*),
- 3. hosted on [GitHub](https://github.com/) and served by [rawgit](https://rawgit.com), which are wonderful but *might* not be always available.
+ 3. hosted on [Bitbucket](https://bitbucket.org/), which is wonderful but *might* not be always available (~ [3 hours of maintenance every 6 months](http://status.bitbucket.org/history), as shown with a small screenshot below).
+
+
## Concretely
-Concretely, GitHub is [always](http://status.github.com/) *up*, *secured* and *quick* (oooh, and it is also awesome, completely free, and awesome too). Yeah, *is it so awesome* that I had to say it *twice*, you read it correctly!
+Concretely, Bitbucket is [always](http://status.bitbucket.org/) *up*, *secured* and *quick* (oooh, and Bitbucket is also awesome, completely free, and awesome too). Yeah, *Bitbucket is so awesome* that I had to say it *twice*, you read it correctly!
But if you prefer, feel free to download the project (with [StrapDown.js.zip](https://bitbucket.org/lbesson/lbesson.bitbucket.org/downloads/StrapDown.js.zip)) and upload it somewhere on your own server, or locally on your machine.
-As the script is hosted on [GitHub](https://github.com/Naereen/StrapDown.js/), it can be loaded *quickly* and *securely* from [cdn.rawgit.com](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js): [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js)!
+The script is also hosted on [GitHub](https://github.com/Naereen/StrapDown.js/) and so it can be loaded *quickly* and *securely* from [cdn.rawgit.com](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js): [https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js](https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js)!
+
> ### A quick "thank you" to the [initial project](https://github.com/arturadib/strapdown/)
> My version of StrapDown.js is a fork of [strapdownjs.com](http://strapdownjs.com), a cool project that [kinda seems dead by now](https://github.com/arturadib/strapdown/graphs/contributors).
@@ -49,7 +53,7 @@ and then copy and paste the following 5 lines :
### Write here in Markdown rather than in HTML
> This document is empty right now. Fill it out with awesome content !
-
+
```
### 2) [A first example](example1.html) *(you can click this to see it)*
@@ -63,7 +67,7 @@ You can now write your web page in Markdown.
You opened a `textarea` tag, but a `xmp` tag works as well.
And, yes, it is **as simple** as **one** HTML line at the beginning and **one** HTML line at the end of this document.
-