sdf_tutorial_editing_guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sdf_tutorial_editing_guide [2021/03/11 18:13] – [Introduction] added text about how you can just update the wiki pages peteyboy | sdf_tutorial_editing_guide [2025/03/06 18:27] (current) – [Original Tutorial Site Editing] clean text, changed link to authoring page peteyboy | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SDF HTML Tutorial Editing Guide ====== | ||
+ | |||
+ | ===== Original Tutorial Site Editing ===== | ||
+ | |||
+ | :!: This tutorial is //not for editing this wiki//, but for the older, [[rcs|RCS]]-versioned straight-HTML-based SDF Tutorial pages, accessible via https:// | ||
+ | |||
+ | You can easily [[wiki_authoring|contribute to this wiki]], but if you want to add to or update the HTML tutorials instead, you may follow the directions below! | ||
+ | |||
+ | ===== Introduction ====== | ||
+ | |||
+ | Many young and very impressionable people discover SDF every day. They ask us what we might feel are stupid questions, but it's not their fault. They' | ||
+ | |||
+ | This guide has been introduced to help members more easily contribute to the SDF Tutorials project. The [[# | ||
+ | |||
+ | It would behoove you to read the original '' | ||
+ | |||
+ | This guide assumes knowledge of basic shell use and text file editing. Familiarity with HTML is not necessary, though it may prove helpful. | ||
+ | |||
+ | ===== Creating and Editing Tutorials ===== | ||
+ | |||
+ | To create or edit a tutorial, change your working directory to ''/ | ||
+ | |||
+ | < | ||
+ | |||
+ | $ cd / | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Creating a New Tutorial ==== | ||
+ | |||
+ | Inside the tutorials directory, you can use '' | ||
+ | |||
+ | < | ||
+ | |||
+ | $ umask 022 | ||
+ | $ echo -e " | ||
+ | |||
+ | </ | ||
+ | |||
+ | Use the command '' | ||
+ | |||
+ | < | ||
+ | |||
+ | $ ci -u your_tutorial_filename.html | ||
+ | |||
+ | </ | ||
+ | |||
+ | The first time you check-in a file, you will be asked for a description of it. Please write something useful. | ||
+ | |||
+ | You may now edit your tutorial using the instructions in the [[# | ||
+ | |||
+ | Once your tutorial is ready for public display, please add it to the list of available tutorials so people can actually find it on the web. You must edit the '' | ||
+ | |||
+ | ==== Editing an Existing Tutorial ==== | ||
+ | |||
+ | Inside the tutorials directory, use the command '' | ||
+ | |||
+ | < | ||
+ | |||
+ | $ co -l filename | ||
+ | |||
+ | </ | ||
+ | |||
+ | **If when using '' | ||
+ | |||
+ | You may now edit the file using your preferred text editor. If you save your work periodically, | ||
+ | |||
+ | When you are finished editing the file, use the command '' | ||
+ | |||
+ | < | ||
+ | |||
+ | $ ci -u filename | ||
+ | |||
+ | </ | ||
+ | |||
+ | When you check-in a file, you will be asked to describe the changes you've made to it. Be as terse as you like, but please write something useful. | ||
+ | |||
+ | If you want to see what has been changed, you may use the '' | ||
+ | |||
+ | |||
+ | ==== Editing the FAQs ==== | ||
+ | |||
+ | MetaARPA users can also edit the [[http:// | ||
+ | |||
+ | ===== Coding A Tutorial ===== | ||
+ | |||
+ | Tutorials are coded using HTML. If you are already handy with HTML, then you are just moments away from editing your tutorial! Please read the [[# | ||
+ | |||
+ | If you are **not** familiar with HTML, the W3C site has a very brief tutorial, [[http:// | ||
+ | |||
+ | If you don't have the time or inclination to learn HTML, you may still be able to contribute to the Tutorials Project. Write a tutorial (or a section, correction, addendum, etc.) in plain text and tack a note in '' | ||
+ | |||
+ | ===== Before You Start Coding! ===== | ||
+ | |||
+ | SDF tutorial files contain HTML code, but **they are not complete HTML documents**. When they are served to web browsers, the site's '' | ||
+ | |||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | |||
+ | Tutorial files will also contain an RCS **$Id** tag, which will look something like: '' | ||
+ | |||
+ | ==== Using Images ==== | ||
+ | |||
+ | **Do not hotlink images from other sites**. Put a copy of any image files you wish to use in ''/ | ||
+ | |||
+ | **Always provide a description of the image** for users of text-based browsers and the visually impaired in the '' | ||
+ | |||
+ | Incorrect: | ||
+ | < | ||
+ | |||
+ | <img src=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | Correct: | ||
+ | < | ||
+ | |||
+ | <img src=" | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Citing References ==== | ||
+ | |||
+ | In the event that you rely heavily upon a source in your tutorial, // | ||
+ | |||
+ | Include a heading for “References”, | ||
+ | |||
+ | <file config References or Notes> | ||
+ | |||
+ | <h2 id=" | ||
+ | <ol> | ||
+ | <li id=" | ||
+ | (Sacramento: | ||
+ | <li id=" | ||
+ | Travesties of Better Judgement</ | ||
+ | </ol> | ||
+ | |||
+ | </ | ||
+ | |||
+ | Then, where the sources are cited in the text of your tutorial, use a superscript ( ''< | ||
+ | |||
+ | <file config Superscript > | ||
+ | |||
+ | < | ||
+ | href="# | ||
+ | |||
+ | </ | ||
+ | |||
+ | Or, | ||
+ | |||
+ | <file config Superscript> | ||
+ | |||
+ | < | ||
+ | Ludmilian haemorrhage(< | ||
+ | |||
+ | </ | ||
+ | |||
+ | There are further examples of this in the [[# | ||
+ | |||
+ | ==== Which HTML Version? ==== | ||
+ | |||
+ | The current W3C recommendation is [[http:// | ||
+ | |||
+ | * Structural Elements | ||
+ | * ''< | ||
+ | * Grouping/ | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * and, of course, ''< | ||
+ | * Text-level/ | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | * ''< | ||
+ | |||
+ | Many closing tags are optional, but for code clarity they can be nice. Stay away from XHTML self-closing tag forms, however (ie. ''< | ||
+ | |||
+ | ===== Coding Style ===== | ||
+ | |||
+ | You can //do a lot// with HTML and CSS. You can do even more if you throw Javascript into the mix. | ||
+ | |||
+ | But don't. | ||
+ | |||
+ | SDF tutorials are a resource for all users, and the means by which the tutorials will be accessed are as diverse as the users themselves. Some will be reading with text-based browsers over telnet connections, | ||
+ | |||
+ | Furthermore, | ||
+ | |||
+ | **Please try as much as possible to use plain HTML when coding tutorials.** Everything you should need to write a clear tutorial is already in the language: | ||
+ | |||
+ | * Structure your tutorial using headings (''< | ||
+ | * Use paragraphs (''< | ||
+ | |||
+ | Rather than use styled ''< | ||
+ | |||
+ | * For important text, use ''< | ||
+ | * For emphasis, use ''< | ||
+ | * For the names of commands, file names, or source code listings, use ''< | ||
+ | * For example console text, use ''< | ||
+ | * And so-on… | ||
+ | |||
+ | There is a [[http:// | ||
+ | |||
+ | ===== HTML Template ===== | ||
+ | |||
+ | The code below may be used as a template if you are creating a new tutorial, or re-writing one from scratch. You don't have to use it; it is merely provided as a convenience. | ||
+ | |||
+ | The text contained between the ''< | ||
+ | |||
+ | <file config SDF Tutorial Template> | ||
+ | |||
+ | <!-- SDF Tutorial Template | ||
+ | ====================================================================== | ||
+ | Use of this code is entirely optional. It is provided as a sample of | ||
+ | coding style, and a quick way to start a new tutorial for users who | ||
+ | may be beginners with HTML. --> | ||
+ | |||
+ | <style type=" | ||
+ | @import url(' | ||
+ | </ | ||
+ | |||
+ | <!-- The title of the tutorial should be the only level-1 header | ||
+ | (< | ||
+ | < | ||
+ | |||
+ | <!-- For longer tutorials, a table of contents is nice. Shorter | ||
+ | tutorials (like this one) really don't need it, so this section can be | ||
+ | omitted. Replace the <ul> tags with <ol> tags for a numbered list. --> | ||
+ | <ul> | ||
+ | <li> | ||
+ | <a href="# | ||
+ | <!-- to get an indented section of the list, we simply embed a | ||
+ | list inside of a list item --> | ||
+ | <ul> | ||
+ | <li> | ||
+ | <a href="# | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | < | ||
+ | < | ||
+ | </ul> | ||
+ | |||
+ | <!-- This is the beginning of a section. It starts with a level-2 | ||
+ | heading (< | ||
+ | linked to. --> | ||
+ | <h2 id=" | ||
+ | |||
+ | <!-- Remember to always contain your paragraphs in <p> tags. For | ||
+ | strings of code, filenames, commands, etc., which appear inside of a | ||
+ | paragraph, wrap them in < | ||
+ | rest of the paragraph' | ||
+ | <p>By issuing the < | ||
+ | will be changed to the narwhal.</ | ||
+ | |||
+ | <!-- For entire blocks of code, place the < | ||
+ | instead of a <p>. Text inside of a <pre> has its whitespace characters | ||
+ | (space, tab, carriage-return) interpreted literally, unlike text | ||
+ | inside of a <p>. --> | ||
+ | < | ||
+ | 20 INPUT X | ||
+ | 30 IF X=" | ||
+ | 40 IF X=" | ||
+ | </ | ||
+ | |||
+ | <!-- For sample program output, console sessions, etc., use < | ||
+ | inside a <pre> block. --> | ||
+ | < | ||
+ | Login: man Name: Duncan | ||
+ | Directory: / | ||
+ | No mail. | ||
+ | Plan: Make Orko clean-up the mess he left in my workshop. | ||
+ | </ | ||
+ | |||
+ | <!-- This sub-section begins with a level-3 heading (< | ||
+ | provides tags for sections nested six levels deep (tags <h1> | ||
+ | through < | ||
+ | ...you might consider restructuring your tutorial! --> | ||
+ | <h3 id=" | ||
+ | |||
+ | <!-- For VERY IMPORTANT TEXT, make it < | ||
+ | word or phrase, use <em>. --> | ||
+ | < | ||
+ | smell will be < | ||
+ | |||
+ | <h2 id=" | ||
+ | |||
+ | <!-- This paragraph gives an example of two styles of footnote | ||
+ | referencing. Both are hyperlinked to corresponding list items (< | ||
+ | in the Notes section below. --> | ||
+ | < | ||
+ | the button labeled " | ||
+ | console< | ||
+ | however, is the foxtrot(< | ||
+ | that particular step is beyond the scope of this tutorial.</ | ||
+ | |||
+ | <!-- Here is a sample footnotes section. In this example, we're using | ||
+ | footnotes to cite a reference, but this same style can be used for | ||
+ | footnotes of any kind. Your tutorial may not require any footnotes. If | ||
+ | it doesn' | ||
+ | <h2 id=" | ||
+ | |||
+ | <!-- We're using an ordered list (< | ||
+ | automatically numbered. A single reference is cited twice in the | ||
+ | tutorial. As you can see, you may use an abbreviated form of citation | ||
+ | for subsequent references to a single work. --> | ||
+ | <ol> | ||
+ | <li id=" | ||
+ | (Milwaukie: Brewers' | ||
+ | <li id=" | ||
+ | </ol> | ||
+ | |||
+ | <!-- At the very end, here, is the RCS Id tag. Let it be, my friend. --> | ||
+ | |||
+ | </ | ||
+ | |||
+ | $Id: tutorial_editing.html, | ||
+ | < | ||
+ | |||
+ | To see how this template looks when rendered, visit '' | ||