porting_existing_tutorials_to_the_wiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
porting_existing_tutorials_to_the_wiki [2024/08/23 19:22] – added easier way to check for recent changes, switched order peteyboy | porting_existing_tutorials_to_the_wiki [2024/09/16 06:28] (current) – es” hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Converting SDF tutorials to the wiki ====== | ||
+ | |||
+ | There is a lot of existing knowledge in the SDF HTML tutorials, one goal of this wiki is to make it easier and quicker to update tutorials. Here are some pointers in porting over tutorials to wiki markup | ||
+ | |||
+ | ===== Check RCS for HTML Tutorial Updates ===== | ||
+ | |||
+ | Interested in keeping the Wiki tutorials in sync with the HTML tutorials? Some folks only like to update the HTML tutorials. Here's a clever, quick command you can run from ''/ | ||
+ | ls -l / | ||
+ | |||
+ | If you need more than the current year, here's a kludgy-but-working one-liner you can run to see any updates since 2023: | ||
+ | <code: sh> | ||
+ | rlog -r *.html |perl -nle "print if / | ||
+ | </ | ||
+ | |||
+ | For the reverse way, if you want to update the HTML tutorials to match the wiki, there is a “Recent changes” link at the top of all wiki pages that goes to a page you can use to find recent changes. | ||
+ | |||
+ | ===== Translated HTML files ===== | ||
+ | |||
+ | - User pifty has run a converter on all the existing ([[wp> | ||
+ | - User peteyboy has run a converter on the existing ([[wp> | ||
+ | |||
+ | * You can look on the [[start]] or [[SDF basics]] page to find a file to convert (see that it is an external link in the wiki to http:// | ||
+ | * Edit the page with the link, and replace it with a link of what you'd like the tutorial wiki page to be named and use < | ||
+ | * Save the page, and look at the red link text you just saved. Click that link | ||
+ | * Dokuwiki will tell you that page doesn' | ||
+ | * In a new tab or browser window, open up the link in the git project for the page you want to copy, copy all the text into the new wiki page tab | ||
+ | |||
+ | You could save that, but it's probably messy and needs cleanup, due to the ways the HTML tutorial writers had to work and the limitations of the converter. | ||
+ | |||
+ | ==== It's better if you do some cleanup: ==== | ||
+ | |||
+ | * in another new tab, open this link for the dokuwiki [[wiki: | ||
+ | * make changes, using the preview to make sure the page looks good before saving | ||
+ | |||
+ | ==== Here are some tips: ==== | ||
+ | |||
+ | * Many of the paragraphs have leading spaces in the converted text, remove them because in wiki that's a code block | ||
+ | * Remove anchor markup in headings, they are probably all messed up. The wiki automatically makes TOCs, so the manual ones can **go** | ||
+ | * Remove any manually generated TOCs, because **above** | ||
+ | * Remove any HTML escape codes, like //> < &// dokuwiki markup doesn' | ||
+ | * Add wiki escape for character strings that are used in wiki markup, for example < | ||
+ | * The protocol in a url is separated from the path by a colon and two slashes, for example: < | ||
+ | http:< | ||
+ | </ | ||
+ | |||
+ | This should render as you expect, meaning not switching italics on for the rest of the document: | ||
+ | |||
+ | The protocol in a url is separated from the path by a colon and two slashes, for example: | ||
+ | http:< | ||
+ | |||
+ | * leading a line by two spaces renders the line as // | ||
+ | |||
+ | this is code | ||
+ | |||
+ | ==== Reference to HTML tutorial you ported ==== | ||
+ | |||
+ | Currently we are using the following convention to link to the source HTML tutorials, via a snippet at the end of the tutorial that looks like so in dokuwiki markup: | ||
+ | |||
+ | >< | ||
+ | |||
+ | For example, the markup looks like: | ||
+ | <code dokuwiki> | ||
+ | |||
+ | [[http:// | ||
+ | </ | ||
+ | |||
+ | And the Example page would then include: | ||
+ | > | ||
+ | |||
+ | **Notes** | ||