Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ your `README.md` to an `EDoc` file.

See [bin/MARKEDOC-README.md](http://github.com/uwiger/edown/blob/master/bin/MARKEDOC-README.md).

**FreeBSD, Mac OS X**`$ sed -E -f markedoc.sed <markdown file> > <edoc file>`
**FreeBSD, macOS**`$ sed -E -f markedoc.sed <markdown file> > <edoc file>`

**Linux**`$ sed -r -f markedoc.sed <markdown file> > <edoc file>`

Expand Down
30 changes: 15 additions & 15 deletions bin/MARKEDOC-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edown markedoc 0.3.2

This is the opposite direction from what **edown** otherwise does.

markedoc translates [Markdown][] formatted texts into [Erlang][] [EDoc][] format, for inclusion into [EDoc][] generated html docs. It is for use on Linux, FreeBSD and Mac OS X and any system that you can install **[sed][Requirements]** on.
markedoc translates [Markdown][] formatted texts into [Erlang][] [EDoc][] format, for inclusion into [EDoc][] generated html docs. It is for use on Linux, FreeBSD and macOS and any system that you can install **[sed][Requirements]** on.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last release of "Mac OS X" was Snow Leopard (10.6 in 2009). "macOS" is the current brand (since 10.12, 2016): https://en.wikipedia.org/wiki/MacOS_version_history


Status: [pre-beta][Status]. Quite stable and usable. See [Status][].

Expand All @@ -17,13 +17,13 @@ Use <a name=Use></a>
---
At the command line for

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ sed -E -f markedoc.sed <markdown file> > <edoc file>

**Linux**
$ sed -r -f markedoc.sed <markdown file> > <edoc file>

Usage for Linux and FreeBSD and Mac OS X is completely the same, except for the -r instead of the -E parameter. Both mean the same but happen to have a different name. In the examples below, replace -E with -r where necessary.
Usage for Linux and FreeBSD and macOS is completely the same, except for the -r instead of the -E parameter. Both mean the same but happen to have a different name. In the examples below, replace -E with -r where necessary.

Requirements <a name=Requirements></a>
------------
Expand All @@ -34,7 +34,7 @@ Requirements <a name=Requirements></a>
Test <a name=Test></a>
----

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ samples/markedoc/test-bsd.sh

**Linux**
Expand All @@ -47,7 +47,7 @@ Sample <a name=Sample></a>

From edown project root, try out:

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ sed -E -f bin/markedoc.sed samples/markedoc/SAMPLE1.md > samples/markedoc/doc/SAMPLE.edoc
$ erl -noshell -run edoc_run application "'myapp'" '"samples/markedoc"' '[]'

Expand All @@ -67,7 +67,7 @@ This illustrates the motivation for the markedoc as it is now: to have all code

For your own projects you'd copy markedoc.sed in the right place and do something like:

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ sed -E -f bin/markedoc.sed README.md > doc/README.edoc
$ erl -noshell -run edoc_run application "'myapp'" '"."' '[]'

Expand All @@ -79,7 +79,7 @@ And that's it. This could also be part of your Makefile. For the intermediary RE

@docfile "doc/README.edoc"

By running sed, then edoc, this makes the README.edoc part of the overview page. You could also make the README.md straight into an overview.edoc but the way it is allows allows to embed it into additional context information that should be useful for a proper html doc.
By running sed, then edoc, this makes the README.edoc part of the overview page. You could also make the README.md straight into an overview.edoc but the way it is allows to embed it into additional context information that should be useful for a proper html doc.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, i'd be inclined to write allows embedding it instead of allows to embed it, but that's a much more careful reading as opposed to a naive rule.


Accordingly, the sample stub overview.edoc used for the samples here, looks like this:

Expand All @@ -102,7 +102,7 @@ both worlds:


This makes a tag `[example][]' into a direct jump to the headline 'Example', in both markdown and edoc.
Markdown actually uses the `[sample]: #sample' reference. EDoc, however, automatically inserts an anchor for 'Example' being a headline, and of the same name. (The links are not case sensitive.)
Markdown actually uses the `[sample]: #sample' reference. EDoc, however, automatically inserts an anchor for 'Example' being a headline, and of the same name. (The links are not case-sensitive.)
If you get the reference wrong or forget to make it, the link tag will be displayed in the open, as actual `[example][]'.


Expand Down Expand Up @@ -156,14 +156,14 @@ History

* integrated into edown

02/05/11 - 0.3.1 - **more polish** - Linux, FreeBSD, Mac OS X
02/05/11 - 0.3.1 - **more polish** - Linux, FreeBSD, macOS

* added weeding out of markdown anchor references (an md workaround)
* added protection for & (but edoc still only accepts number codes)
* fixed trip up by trailing spaces in underline headline format
* checked commented out alternate code for code blocks and references.

02/03/11 - 0.3 - **rough edges polished** - Linux, FreeBSD, Mac OS X
02/03/11 - 0.3 - **rough edges polished** - Linux, FreeBSD, macOS

* added doc for Linux use
* added support for multi-line '[..]: ... "..."' references
Expand All @@ -173,12 +173,12 @@ History
* guillemots <<, >> and middle dot ::
* added test batches etc/test-bsd.sh and etc/test-linux.sh
* added css sample in samples/markedoc/what-you-could-see/
* added classes for ``< li >'' list item tags for '[..]:...'-references
* fixed italic and bold merker interference bullet points
* eliminated [..]: part of '[..]:...'-references, flipping "..." to lead
* added classes for ``< li >`` list item tags for `[..]:...`-references
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think `` ... '' is (La)TeX, but this is Markdown, so it makes sense to use `` ... `` / ` ... ` instead.

* fixed italic and bold marker interference bullet points
* eliminated [..]: part of `[..]:...`-references, flipping "..." to lead
* dev: sample creation batch make_samples.sh added

02/02/11 - 0.2 - **basics complete** - FreeBSD / Mac OS X
02/02/11 - 0.2 - **basics complete** - FreeBSD / macOS

* added support for === and --- headline format
* fixed cutting off of last lines
Expand All @@ -188,7 +188,7 @@ History
* eliminated need for echoing '@doc' first into edoc output file
* added javascript title tag setting for '[..]:...'-style references.

01/31/11 - 0.1 - **first release:** FreeBSD / Mac OS X
01/31/11 - 0.1 - **first release:** FreeBSD / macOS

[Requirements]: #Requirements
[Status]: #Status
Expand Down
12 changes: 6 additions & 6 deletions bin/markedoc.sed
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# markedoc 0.3.2 - 02/18/11 H. Diedrich <hd2010@eonblast.com>
# ----------------------------------------------------------
# sed command file to convert markdown format to edoc format
# Linux, FreeBSD and Mac OS X. Windows must install sed.
# Linux, FreeBSD and macOS. Windows must install sed.
# ----------------------------------------------------------
# Use it to make a markdown readme file part of an edoc file:
# FrBSD: sed -E -f <this file> <markdown file> > <edoc file>
# MacOS: sed -E -f <this file> <markdown file> > <edoc file>
# macOS: sed -E -f <this file> <markdown file> > <edoc file>
# Linux: sed -r -f <this file> <markdown file> > <edoc file>
# As only difference, Linux uses -r where the others use -E.
# ----------------------------------------------------------
# SAMPLE USE (FreeBSD / Mac OS X):
# SAMPLE USE (FreeBSD / macOS):
# sed -E -f markedoc.sed README.markdown > overview.edoc
# SAMPLE USE (Linux):
# sed -r -f markedoc.sed README.markdown > overview.edoc
Expand All @@ -19,7 +19,7 @@
# SAMPLE RESULTS:
# samples/what-you-should-see/ & samples/what-you-could-see/
# ----------------------------------------------------------
# SAMPLE WORKFLOW (change -r to -E for FreeBSD / Mac OS X):
# SAMPLE WORKFLOW (change -r to -E for FreeBSD / macOS):
# sed -r -f markedoc.sed README.md > doc/README.edoc
# erl -noshell -run edoc_run application "'myapp'" '"."' '[]'
# ----------------------------------------------------------
Expand All @@ -46,7 +46,7 @@
# **********************************************************
# SCRIPT
# **********************************************************
# Ach, da kommt der Meister! Herr, die Not ist gro�! ~~~
# Ach, da kommt der Meister! Herr, die Not ist groß! ~~~
# ~~~ Die ich rief, die Geister, Werd ich nun nicht los.
# ----------------------------------------------------------
# This is a sed script for use with -E/-r regexes & NOT -n.
Expand Down Expand Up @@ -114,7 +114,7 @@
s/([ \"\'\`]+@)/\1@/g
# send result to stdout
p
# Now make sure that that last line is not lost:
# Now make sure that the last line is not lost:
# ----------------------------------------------
# get stored back
g
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ your `README.md` to an `EDoc` file.

See [bin/MARKEDOC-README.md](bin/MARKEDOC-README.md).

**FreeBSD, Mac OS X**`$ sed -E -f markedoc.sed <markdown file> > <edoc file>`
**FreeBSD, macOS**`$ sed -E -f markedoc.sed <markdown file> > <edoc file>`

**Linux**`$ sed -r -f markedoc.sed <markdown file> > <edoc file>`

Expand Down
2 changes: 1 addition & 1 deletion doc/edown_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ specified, no stylesheet reference will be generated.


<dd>If <code>true</code>, the detailed function descriptions are listed by
name, otherwise they are listed in the order of occurrence in
name; otherwise, they are listed in the order of occurrence in
the source file. The default value is <code>true</code>.
</dd>

Expand Down
2 changes: 1 addition & 1 deletion doc/overview.edoc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ your `README.md' to an `EDoc' file.

See <a href="bin/MARKEDOC-README.md">bin/MARKEDOC-README.md</a>.

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
`$ sed -E -f markedoc.sed <markdown file> > <edoc file>'

**Linux**
Expand Down
2 changes: 1 addition & 1 deletion priv/scripts/check_edown.script
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%% -*- erlang -*-
%%
%% This helper script checks if doc is being built, otherwise removes edoc dep.
%% This helper script checks if doc is being built; otherwise, removes edoc dep.
%% To build docs, call `rebar get-deps doc`
%% Assumes that the rebar config is bound to CONFIG

Expand Down
22 changes: 11 additions & 11 deletions samples/markedoc/SAMPLE3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SAMPLE 3: markedoc 0.3 README of Feb 2011

**markedoc helps you keep your project's README.md in sync with your overview.edoc.**

It is for use on Linux, FreeBSD and Mac OS X and any system that you can install **[sed][Requirements]** on.
It is for use on Linux, FreeBSD and macOS and any system that you can install **[sed][Requirements]** on.

Status: [pre-beta][Status]. Quite stable and usable. See [Status][].

Expand All @@ -29,13 +29,13 @@ Use
---
At the command line for

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ sed -E -f markedoc.sed <markdown file> > <edoc file>

**Linux**
$ sed -r -f markedoc.sed <markdown file> > <edoc file>

Usage for Linux and FreeBSD and Mac OS X is completely the same, except for the -r instead of the -E parameter. Both mean the same but happen to have a different name. In the examples below, replace -E with -r where necessary.
Usage for Linux and FreeBSD and macOS is completely the same, except for the -r instead of the -E parameter. Both mean the same but happen to have a different name. In the examples below, replace -E with -r where necessary.

Requirements
------------
Expand All @@ -46,7 +46,7 @@ Requirements
Test
----

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ etc/test-bsd.sh

**Linux**
Expand All @@ -59,7 +59,7 @@ Sample

From project root (were the README.md file is), try out:

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ sed -E -f bin/markedoc.sed samples/SAMPLE1.md > samples/doc/SAMPLE.edoc
$ erl -noshell -run edoc_run application "'myapp'" '"samples"' '[]'

Expand All @@ -79,7 +79,7 @@ This illustrates the motivation for the markedoc as it is now: to have all code

For your own projects you'd copy markedoc.sed in the right place and do something like:

**FreeBSD, Mac OS X**
**FreeBSD, macOS**
$ sed -E -f bin/markedoc.sed README.md > doc/README.edoc
$ erl -noshell -run edoc_run application "'myapp'" '"."' '[]'

Expand All @@ -91,7 +91,7 @@ And that's it. This could also be part of your Makefile. For the intermediary RE

@docfile "doc/README.edoc"

By running sed, then edoc, this makes the README.edoc part of the overview page. You could also make the README.md straight into an overview.edoc but the way it is allows allows to embed it into additional context information that should be useful for a proper html doc.
By running sed, then edoc, this makes the README.edoc part of the overview page. You could also make the README.md straight into an overview.edoc but the way it is allows to embed it into additional context information that should be useful for a proper html doc.

Accordingly, the sample stub overview.edoc used for the samples here, looks like this:

Expand Down Expand Up @@ -219,7 +219,7 @@ H. Diedrich <hd2010@eonblast.com>
History
-------

02/03/11 - 0.3 - **rough edges polished:** Linux, FreeBSD, Mac OS X
02/03/11 - 0.3 - **rough edges polished:** Linux, FreeBSD, macOS

* added doc for Linux use
* added support for multi-line '[..]: ... "..."' references
Expand All @@ -230,11 +230,11 @@ History
* added test batches etc/test-bsd.sh and etc/test-linux.sh
* added css sample in samples/what-you-could-see/
* added classes for `<li>' list item tags for '[..]:...'-references
* fixed italic and bold merker interference bullet points
* fixed italic and bold marker interference bullet points
* eliminated [..]: part of '[..]:...'-references, flipping "..." to lead
* dev: sample creation batch make_samples.sh added

02/02/11 - 0.2 - **basics complete:** FreeBSD / Mac OS X
02/02/11 - 0.2 - **basics complete:** FreeBSD / macOS

* added support for === and --- headline format
* fixed cutting off of last lines
Expand All @@ -244,4 +244,4 @@ History
* eliminated need for echoing '@doc' first into edoc output file
* added javascript title tag setting for '[..]:...'-style references.

01/31/11 - 0.1 - **first release:** FreeBSD / Mac OS X
01/31/11 - 0.1 - **first release:** FreeBSD / macOS
2 changes: 1 addition & 1 deletion samples/markedoc/test-bsd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo -n "testing markedoc - FreeBSD / Mac OS X: "
echo -n "testing markedoc - FreeBSD / macOS: "

echo -n "1 ... "
sed -E -f bin/markedoc.sed samples/markedoc/SAMPLE1.md > samples/markedoc/doc/SAMPLE.edoc
Expand Down
2 changes: 1 addition & 1 deletion samples/markedoc/test-macosx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo -n "testing markedoc - FreeBSD / Mac OS X: "
echo -n "testing markedoc - FreeBSD / macOS: "

echo -n "1 ... "
sed -E -f bin/markedoc.sed samples/markedoc/SAMPLE1.md > samples/markedoc/doc/SAMPLE.edoc
Expand Down
2 changes: 1 addition & 1 deletion samples/markedoc/what-you-should-see/SAMPLE1.edoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Open Source Erlang MySQL driver efforts are currently a fractured matter, at lea

<li> <b>Yxa</b>: The first Erlang MySQL driver seems to have been written in 2005 by <a href="javascript:goto('ma')" onMouseOver="this.title=url('ma')">Magnus Ahltorp</a> at the <a href="javascript:goto('3')" onMouseOver="this.title=url('3')">Royal Institute of Technology</a>. It is the basis for the following two. The <a href="javascript:goto('4')" onMouseOver="this.title=url('4')">original mysql driver source</a> is stable since at least 2007, it is available as part of the SIP proxy <a href="javascript:goto('5')" onMouseOver="this.title=url('5')">Yxa 1.0</a> (hosted <a href="javascript:goto('6')" onMouseOver="this.title=url('6')">on github</a>).</li>

<li> <b>ejabberd</b>: Already in 2006, a <a href="javascript:goto('7')" onMouseOver="this.title=url('7')">fork</a> was created by <a href="javascript:goto('mr')" onMouseOver="this.title=url('mr')">Mickael Remond</a> at <a href="javascript:goto('8')" onMouseOver="this.title=url('8')">Process One</a> to become part of the successful instant messaging server <a href="javascript:goto('9')" onMouseOver="this.title=url('9')">ejabberd</a> (also hosted <a href="javascript:goto('10')" onMouseOver="this.title=url('10')">at github</a>). It can be assumed to be as stable as the Yxa branch, and it didn't change anything in the lowest level, mysql_recv.erl. The differences to the original Yxa branch mainly consists of added inspection functions that help using query results, and an <a href="javascript:goto('11')" onMouseOver="this.title=url('11')">independent adoption</a> to the MySQL 4.1 client-server protocol. Also, the original Yxa branch has meanwhile adopted edoc comment format. Find a diff <a href="javascript:goto('12')" onMouseOver="this.title=url('12')">here</a>, one ignoring comment lines <a href="javascript:goto('13')" onMouseOver="this.title=url('13')">here</a>.</li>
<li> <b>ejabberd</b>: Already in 2006, a <a href="javascript:goto('7')" onMouseOver="this.title=url('7')">fork</a> was created by <a href="javascript:goto('mr')" onMouseOver="this.title=url('mr')">Mickael Remond</a> at <a href="javascript:goto('8')" onMouseOver="this.title=url('8')">Process One</a> to become part of the successful instant messaging server <a href="javascript:goto('9')" onMouseOver="this.title=url('9')">ejabberd</a> (also hosted <a href="javascript:goto('10')" onMouseOver="this.title=url('10')">at github</a>). It can be assumed to be as stable as the Yxa branch, and it didn't change anything in the lowest level, mysql_recv.erl. The differences to the original Yxa branch mainly consists of added inspection functions that help using query results, and an <a href="javascript:goto('11')" onMouseOver="this.title=url('11')">independent adoption</a> to the MySQL 4.1 client-server protocol. Also, the original Yxa branch has meanwhile adopted edoc comment format. See a <a href="javascript:goto('12')" onMouseOver="this.title=url('12')">Diff of ejabberd mysql driver vs yxa mysql driver</a>, or a <a href="javascript:goto('13')" onMouseOver="this.title=url('13')">Diff of ejabberd mysql driver vs yxa mysql driver (comment changes ignored)</a>.</li>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


<li> <b>erlang-mysql-driver</b>: in 2006/07 <a href="javascript:goto('ys')" onMouseOver="this.title=url('ys')">Yariv Sadan</a> created a fork from the ejabberd branch, made it a standalone project, gave it the name that stuck, and hosted it at <a href="javascript:goto('15')" onMouseOver="this.title=url('15')">Google Code</a>. Before he moved on to work at Facebook, he had added higher level handling of prepared statements and transactions, and stated that he had improved connection pooling and logging. There were changes both in the original Yxa and the ejabberd branch after the forking off that seem to never have made their way into the erlang-mysql-driver branch, which now lies dormant since Oct '07. Docs were somewhat unsatisfying, as much as for the earlier branches. In Feb '10, Dave Smith started making some</li>
<a href="javascript:goto('15')" onMouseOver="this.title=url('15')">updates</a> and put them on github, were the driver is now enjoying a couple of <a href="javascript:goto('16')" onMouseOver="this.title=url('16')">active forks</a> that make for a convincing case in favor of the github Network graph.
Expand Down
Loading