mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Docs updates
This commit is contained in:
parent
ad13d57523
commit
21a791cdcd
@ -87,7 +87,7 @@ For example files see the plugins in the tiddlywiki5 repository i.e. those locat
|
|||||||
|
|
||||||
Modify editions/tw5.com/tiddlywiki.info to include a reference to your plugin directory, i.e. find `"plugins": [ ` and add `"yourname/pluginname"`.
|
Modify editions/tw5.com/tiddlywiki.info to include a reference to your plugin directory, i.e. find `"plugins": [ ` and add `"yourname/pluginname"`.
|
||||||
|
|
||||||
From the TW5 directory issue command
|
From the TW5 directory issue the command
|
||||||
|
|
||||||
```
|
```
|
||||||
./bin/qbld.sh
|
./bin/qbld.sh
|
||||||
|
@ -21,7 +21,7 @@ type: text/vnd.tiddlywiki
|
|||||||
# Copy the contents of `<repo>/core/language/en-GB` into your translation folder
|
# Copy the contents of `<repo>/core/language/en-GB` into your translation folder
|
||||||
# Create a `plugin.info` file (see below) in your translation folder
|
# Create a `plugin.info` file (see below) in your translation folder
|
||||||
# Edit `<repo>/editions/tw5.com/tiddlywiki.info` to add your language to the list
|
# Edit `<repo>/editions/tw5.com/tiddlywiki.info` to add your language to the list
|
||||||
# Run `./bin/qbld.sh` to build TiddlyWiki
|
# Run `../build.jermolene.github.io/quick-bld.sh` to build TiddlyWiki
|
||||||
# Open the TiddlyWiki file at `/MyTranslation/jermolene.github.com/index.html`
|
# Open the TiddlyWiki file at `/MyTranslation/jermolene.github.com/index.html`
|
||||||
# You should see your translation listed in the control panel, but the text of the translation will still be in British English
|
# You should see your translation listed in the control panel, but the text of the translation will still be in British English
|
||||||
# Edit the `.tid` and `.multids` files in your language folder to translate the English text
|
# Edit the `.tid` and `.multids` files in your language folder to translate the English text
|
||||||
|
@ -28,7 +28,7 @@ It is also possible to produce a single HTML file that contains static represent
|
|||||||
|
|
||||||
For example: <a href="alltiddlers.html">alltiddlers.html</a>
|
For example: <a href="alltiddlers.html">alltiddlers.html</a>
|
||||||
|
|
||||||
The example is built by the following line in `bin/bld.sh`:
|
The example is built by the following commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
--rendertiddler $:/core/templates/alltiddlers.template.html alltiddlers.html text/plain
|
--rendertiddler $:/core/templates/alltiddlers.template.html alltiddlers.html text/plain
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
created: 20130825150100000
|
created: 20130825150100000
|
||||||
modified: 20140912141559011
|
modified: 20140912141559011
|
||||||
tags: [[TiddlyWiki on Node.js]]
|
tags: [[TiddlyWiki on Node.js]]
|
||||||
title: Using TiddlyWiki for GitHub Pages project documentation
|
title: Using TiddlyWiki for GitHub project documentation
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
TiddlyWiki5 can be used to produce documentation for GitHub projects. It lets you maintain a single set of documentation as a [[TiddlyWikiFolder|TiddlyWikiFolders]] containing separate tiddler files under source code control, and then use it to produce `readme.md` files for inclusion in project folders, or HTML files for storage in [[GitHub Pages|http://pages.github.com/]]. Both features are demonstrated by TiddlyWiki5 itself.
|
TiddlyWiki5 can be used to produce documentation for GitHub projects. It lets you maintain a single set of documentation as a [[TiddlyWikiFolder|TiddlyWikiFolders]] containing separate tiddler files under source code control, and then use it to produce `readme.md` files for inclusion in project folders, or HTML files for storage in [[GitHub Pages|http://pages.github.com/]]. Both features are demonstrated by TiddlyWiki5 itself.
|
||||||
|
|
||||||
! Generating `readme.md` files
|
! Generating `readme.md` files
|
||||||
|
|
||||||
When displaying the contents of a folder GitHub will look for a `readme.md` file and display it. Note that it will not display full HTML files in this way, just static MarkDown files (this is a security measure). Happily MarkDown permits a safe subset of HTML, and thus to generate a `readme.md` file that is suitable for GitHub it is just necessary for TiddlyWiki5 to generate the content of the `<body>` element of an HTML document, and give it the appropriate filename.
|
When displaying the contents of a folder GitHub will look for a `readme.md` file and display it. Note that it will not display full HTML files in this way, just static MarkDown files (this is a security measure). Happily MarkDown permits a safe subset of HTML, and thus to generate a `readme.md` file that is suitable for GitHub it is just necessary for TiddlyWiki5 to generate the content of the `<body>` element of an HTML document, and give it the appropriate filename.
|
||||||
|
|
||||||
This is done in `bin/bld.sh` by this command:
|
This is done with this command:
|
||||||
|
|
||||||
```
|
```
|
||||||
--rendertiddler ReadMe ./readme.md text/html
|
--rendertiddler ReadMe ./readme.md text/html
|
||||||
@ -27,10 +27,3 @@ By default, tiddler links will be rendered as `<a>` links to a relative URI cons
|
|||||||
See the LinkWidget for more details.
|
See the LinkWidget for more details.
|
||||||
|
|
||||||
In this example, tiddler links are rendered as links to the static rendering of tw5.com.
|
In this example, tiddler links are rendered as links to the static rendering of tw5.com.
|
||||||
|
|
||||||
! Publishing to GitHub Pages
|
|
||||||
|
|
||||||
Publishing to GitHub Pages is very straightforward. In the case of TiddlyWiki5, several different build products are published.
|
|
||||||
|
|
||||||
The `bld.sh` script deposits the build products directly into the local clone of the repo associated with the GitHub Pages account. There is then a manual step to review changes and push them up to github.com.
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user