This page gives common guidelines on the best practices to be followed when writing or updating FreeCAD documentation.
It also has the goal to bring together the threads that are dispersed in the forum and try to make order, being a single point of reference for FreeCAD documentation discussion and brainstorming, to better organize the wiki.
Editing wiki pages is easy. Before starting editing FreeCAD wiki pages, be sure to be familiar with the Wiki editing basics.
When describing FreeCAD functionality try to be concise and to the point. Also, please describe what FreeCAD does, NOT what FreeCAD does not do. There might be exceptions for justifying why FreeCAD does not support a certain functionality, in case for instance there is a different philosophy or way to achieve the result with respect to traditional CAD systems, but these cases must be the exception.
Ideally, you should try to avoid duplicating the same information in different places. While it is simple to copy & paste some text, it will eventually lead to misaligned information when a page is updated and the other not. You should insert the information in one place only, and make reference to this single point.
A possible solution for the above problem is the use of templates and transclusions (see Templates and transcluding pages if you are not familiar with this concept), but their usage for this goal is strongly discouraged. The reason is that in the printed manual created from the Wiki help you will have the same information printed over and over again; but even a reader using the Wiki can be confused by finding the same text in different pages. In case you need the same explanations in more than one point of the documentation, please consider creating a new page topic, and make explicit references (links) to this page.
Templates are heavily used, instead, for styling the text. For instance, there is a template for styling menu commands, like File->Save, another template to style keys to be pressed, like SHIFT, etc.. This allows to have a consistent look and feel of the documentation, as well as to be able to update the style by simply changing the template. Please get familiar with the templates used in FreeCAD Wiki Help documentation before writing help pages.
Working by examples will help you keep the right track, and be ahead on the learning curve. So even if reading the following sections is highly recommended, you can quickly get familiar with the structure and style of FreeCAD wiki looking at the following pages, that can be considered reference for best style practices of FreeCAD documentation.
If you are consistent with this look & feel, you won't be far from a correct FreeCAD documentation page, and your contribution will blend more easily in the wiki.
You should normally not use a =header= for a page, since the page title is automatically added.
The User's hub provides a Table of Contents. This is used as the main reference for (automatically) building the offline help you can reach from FreeCAD, as well as the offline pdf documentation. The Template:Docnav, which is used to link a page with the previous and the next page of the same section (see #Templates section below for a list of all templates, including Docnav) should be aligned with the structure in the Table of Contents.
Page names should be short, and every word should begin with a capital letter, unless they are articles, prepositions, conjunctions (e.g. 'of', 'on', 'and')
Working with architecture walls
Workbench pages must have the format XYZ Workbench, where XYZ is the name of the referred workbench.
Pages describing the tools of a workbench must have the format XYZ MyTool, where MyTool is the name of the specific tool.
You should use the original link name for the links whenever possible. This clarifies the referenced chapter in printed / pdf documentation. You must anyway avoid the usage of non-meaningful words for the link.
For more information on this topic, click here.
For more information on this topic, refer to drafting 2D objects.
For more information on this topic, see how to draft 2D objects in the Draft Workbench.
Every page of a workbench should start with:
The command pages describing workbench tools should not be too long, they should only explain what a command can do and what it can't, and how to use it. You should keep pictures to a minimum, and not give too many examples - tutorials is where we should go in step-by-step details.
Restrictions should be documented right in the command page itself rather than elsewhere, possibly under a "restrictions" chapter.
Please refer to the Gui Command page for specific indications on Gui Command rules (naming, documenting, etc.).
Good tutorial examples are available at FreeCAD tutorial - Unofficial tutorial blog. Though they are not styled as FreeCAD wiki pages, they are a valid example of how a written tutorial should look like.
You should avoid colloquial generic expressions as 'a couple'. Please re-phrase as 'some' if indeterminate, or with the correct cardinality.
Try to avoid repetitions to keep descriptions short.
Part Design Workbench: the Part Design Workbench is a workbench for part design that aims to provide tools for modelling complex solid parts.
Part Design Workbench: aims to provide tools for modelling complex solid parts.
Styling of FreeCAD Wiki pages is mainly achieved through the usage of templates. The table here below reports the templates that should be used in FreeCAD Wiki pages. Please use the templates listed below as much as possible, since these allows to re-style the whole Wiki in one shot by updating the template, and is the preferred method in the Wiki. For special cases only you can resort to direct HTML tags.
Remark: you can see the complete list of defined templates accessing Special:PrefixIndex/Template:. However, not all the templates defined here are used for styling the text, and others are deprecated. Please refer to the table below for the list of templates you should use when documenting FreeCAD in the Wiki.
Template | Appearance | Description |
---|---|---|
Emphasis | emphasis | Text to emphasize |
KEY | ALT | Show a keyboard key |
FALSE | FALSE | False value (e.g. of a property) |
TRUE | TRUE | False value (e.g. of a property) |
MenuCommand | File->Save | GUI menu text |
FileName | File name | Names of files or directories |
Code | import FreeCAD |
Style source code. Default language is Python, other languages can be specified. |
SystemInput | Type this text | User typed input text |
SystemOutput | Output text | Text output from the system |
Variable | TYPEMyAttribute | Value or parameter, optionally with a type |
Optional | [InsertThis..OrNot] | Optional text or value |
Choice | { This | That } | Choice of values from which one is used |
Prettytable | this table | Create tables |
Clear | Clear columns. Follow the hyperlink for a detailed explanation. Often used to stop text from flowing next to unrelated images. | |
Fake heading | Heading that will not be included in the automatic TOC | |
GuiCommand | See example GuiCommand model | Main template for creating right side box for documenting GuiCommands |
Macro | See example Macro FlattenWire | Main template for creating right side box for documenting macros |
PropertyView | VIEWColor | Show a View property |
PropertyData | DATAPosition | Show a Data property |
Properties Title / TitleProperty | Base | Title for a property group. Will not be included in the automatic TOC. |
PropertyTasks / TasksTag | TASKS Tasks | Argument for Tasks |
TitleTasks | ===Tasks Title=== | Title for Tasks |
Docnav | Used to create the 'next', 'previous' and 'index' links (usually at the bottom of a page) | |
Version | available in version 0.13 | Indicate that a feature is available only starting with a specific FreeCAD version |
VeryImportantMessage | Important Message
|
Used to highlight very important messages. Use sparingly. |
Softredirect | Use it instead of the normal redirect, when you are redirecting to a special page (such as Media: or Category:), in which cases the normal redirect is disabled. | |
UnfinishedDocu | This documentation is not finished. Please help and contribute documentation. See Draft ShapeString for good documented Command. Gui Command gives an overview over commands. And see List of Commands for other commands. Go to Help FreeCAD to contribute. |
Marks work in progress on a documentation page. |
Quote | Cry "Havoc" and let slip the dogs of war. |
Quote for citations. |
Click | Deprecated | Superimpose an invisible link on an image. You should use the native Wiki picture inclusion method instead. |
DASH | Deprecated | Text box type code, colorful background. You should use the style you obtain starting the source line with a space. |
Disambig | Deprecated | Not used. |
Information | Deprecated | Not used. A standardized table providing complete information about the file, including description of what it shows and how it was made, copyright status and source. |
Languages | Deprecated | Obsolete with the new wiki, translations and languages are managed via a dedicated tool. |
Message | Deprecated | For not very important messages. Not used. |
Powerdocnavi, Devdocnavi, Userdocnavi | Deprecated | Bottom page navigation. Not to be used, redundant. |
Screenshot | Deprecated | See #Screen capture instead. |
To have a global view on the chromatic aspect, see Basic Graphic Template.
Code must be styled using the Code template.
Code description should follow the text box generated by the Code template, so that the description is structured according to the content. Accentuation should be strictly used only on the word or lines that must be accentuated.
makeAngularDimension (center,[angle1,angle2],p3): creates an angular Dimension from the given center, with the given list of angles, passing through p3. Returns the newly created object.
makeAngularDimension (center,[angle1,angle2],p3)
Avoid thumbnails whenever possible. Pictures should be shown in their original size, to avoid the need for the user to continuously navigate back and forth between different pages. Most important even, in the automatically generated printed manual (e.g. pdf version), thumbnails may not be readable. Thumbnails should be used only as last resource.
For the same reason, you should avoid animated pictures (i.e. gif). Animation should be reserved for tutorials not intended to be read as static content (e.g. video).
Pictures must be uploaded through the Special:Upload page.
Recommended size for screen captures, to avoid any resizing when showing the picture, should be:
If possible, you shouldn't depend too much on any OS. While of course achieving 100% independency from the underlying OS is not possible, you should use visual defaults whenever possible.
To ease documentation translations, if you put a screenshot showing the interface, you should not show the 3D model view in the same screenshot. In this way, the translator will not have to hunt for the model used to create the screenshot, and can simply take a screenshot of the localized interface. If there are drop down menus in the taskbar, the options should be listed in the text content.
If your screen capture contains text (e.g. a menu), use the same resolution of the original interface item in FreeCAD. This avoids to have images containing very large or very small text, and keeps the same look and feel of the FreeCAD native interface.
In this picture, note that the text dimension is acceptable, but there still are visual artifacts due to rescaling (the original width is 307px, rescaled to 190px) You should use native resolution to avoid visual artifacts due to rescaling.
Refer to this page for ready-to-use Artwork and Icon creation rules.
The following pages contain models for FreeCAD documentation.
As per general consensus, the reference page is the English page, that should be created first. Moreover, if you want to change or add content in a page, you should do it in the the English page first, and only once the update is completed, port the modification to the translated page.
The FreeCAD wiki supports a Translation plugin which allows to manage translations between pages.
For details on translation, see FreeCAD Wiki Translation Process under Localisation.
Other useful resources are:
See this link in the forum: http://forum.freecadweb.org/viewtopic.php?f=21&t=6716
At the page WikiRobots you can find instructions on how to set-up and use robots to automate repetitive tasks on the FreeCAD Wiki.
The Forum provides a dedicated section for discussing documentation wiki topics. Direct your questions there.
Organize pages in the wiki
I think the things like this are also templates? {{PartDesign Tools}} This template contains headlines, icons, short textual description, long textual description, list elements. May be easier to handle when splitted in pieces (at least: icon list, description list, "full featured": array of someWorkbenchTools[icon|description,{2-4}]...) ?
Template | Note | Note |
---|---|---|
suggestion
caution |
useful? | as Message? |
alert | useful? | as VeryImportantMessage? |
idea | useful? | |
shortcut | as KEY? |
Template | Appearance | Description |
---|---|---|
Clear | ok | Template for clearing columns |
Click | rarely used | superimpose an invisible link on an image |
DASH | rarely used | text box type code, colorful background |
Disambig | not used | |
Docnav | ok | |
FALSE | color or black and gray? | FALSE FALSE FALSE False False False False False False |
Gui Command | ok | the main anchor on documenting GuiCommands |
MenuCommand | File->Save | Text that is displayed in a GUI command menu |
Information | not used | A standardized table providing complete information about the file, including description of what it shows and how it was made, copyright status and source. |
KEY | ALT | Show a keyboard key |
Languages | ok | obsolete with the new wiki |
Macro | ok, used | the main anchor on documenting macros |
Message | rarely used | for message not very important |
VeryImportantMessage | ok, used | for message very important |
Prettytable | used for this table | could have different colors |
PropertyView | background green or gray? | VIEW Property View Property |
Properties Title | spelling. color or black and gray? | Base |
PropertyTasks | color or black and gray? | TASKS Length Renato: serve but too many disturbing reading |
Screenshot | link | {{{2}}} - see more screenshots |
Softredirect | Use it instead of the normal redirect, when you are redirecting to a special page (such as Media: or Category:), in which cases the normal redirect is disabled. | |
TasksTag | color or black and gray? | TASKS Text |
TRUE | color or black and gray? | TRUE |
UnfinishedDocu | ok | mark not finished documentation. |
Version | FreeCAD version, small text | |
* PartDesignTools * _______________
Some useful examples taken from the forum
- The wiki, is the best way to create documentation FreeCAD? Would not it be better to reserve it for some issues and create a comprehensive manual for each version?
- About updates, this is a crucial point, I've seen that you do not like docboock, and I do not intend to return to this theme, but docboock allows translators to easily work on documents. Allows you to download the entire document and compare it with the previous one. With this way changes are made always and only in the original document. Then the translators periodically (even daily if they want) downloading the document and compares with an earlier version and update it indicating the upgrade version. I've experienced that this procedure is very good. Can I do a similar thing with the wiki? In this way there is no need to continuously monitor Recent Changes and updates are easier to control.
yorikvanhavre wrote: Actually we could do a little brainstorming, see things that should be changed on the wiki... I already thought of a couple of things: - a new wiki homepage with a clear view of the contents - better formatting of the 3 principal sections, for user (basically the command pages), for power users (everything about python) and the higher-level stuff (compiling, etc) - more professional aspect of the wiki pages - build a better and more strict model for command pages - find a good system to handle translations
gdo wrote: But maybe a survey to freecad users could help to understand precisely what is the beginners needs.
Ralf wrote: Even for the ones who are trying FreeCAD the first times, it's essential to find a consistent documentation otherwise they weren't motivated to give even some first tries.
And many more ... dispersed and mixed in:
Ralf: good: you can see where you are ; bad: a huge lot of entrys in the navigation / summary at left - the opposite of structured; sorry: pieces of the forum at the documentation page: what is the documentation page good for than? (but the link to the forum / forum search - ok.)
http://www.gcad3d.org/
Ralf: thumbs up. clear, well structured. sometimes long but I don't know how to avoid that at some themes. Maybe the tree structure layers could be separated in two directions at the page for more place for the content. They have "last updates" I prefer "this version of the documentation is xxx and depend the program version xxy"
Reported by wandererfan
guidelines for wiki authors:
http://wiki.blender.org/index.php/Meta:Guides/Writer_Guide
http://wiki.blender.org/index.php/Meta:Guides/Style_Guide
Manual TOC:
http://docs.gimp.org/2.8/en/
http://wiki.blender.org/index.php/Doc:2.6/Manual
Reported by Ralf:
http://opensourceecology.org/wiki/FreeCAD
For the Italian translation also:
http://tp.linux.it/
See Glossary
proposal to create the page:
When you start FreeCAD for the first time, you are presented with the start center:
The Start Center allows you to quickly jump to one of the most common workbenches, open one of the recent files, or see the latest news from the FreeCAD world. You can change the default workbench in the preferences.
Use this part of Getting started then add more information
{{Macro|Icon=Text-x-python|Name=Dimensions|Description=Dimensioning |Author=eason}}
Macro for easy add dimension to Draft ... objects ...
Some considerations about Part Design Fillet.
Fillet is a useful tool, very agile for certain operations, but subject to certain limitations.
The examples are based on a cube 10x10x20.
First case. Fillet on an edge.
In appearance this tool acts on an edge, but in reality creates a curved surface that joins two other surfaces. Therefore it uses two faces as references, for example the side face and the upper face of a cube. At the edge that separates them can be applied a rounding with a radius equal to the limit dimension of the smaller face less a "residual safety value" of 0.0001 (according to the value of decimal set). The "security value" serves to maintain existing a small surface, in this case large 0.0001.
When one of the two surfaces that are connected disappears completing the operation fails because it lacks one of the references used by the function, and the result is unpredictable.
Second case. Fillet applied on two opposite edges of the same face.
In this case, there is not a limit radius, but the limit is (R1 + R2 <thickness-0.0001). The limit is valid if R1 or R2 are not superior to others thicknesses involved in the operation (eg. The height of the cube). The "residual safety value" is positioned at the junction of the fillets.
It is recommended to use this function only when modeling is ended, to eliminate "sharp corners", and instead use alternative tools to produce the model.
Alternative methods of rounding.
A simple method to create the rounded surfaces in a continuous manner, without the "surface residue" is, for example, to create a "cleaner" sketch on the front face as in this figure
and then apply a Pocket -> Through all. It returns a completely clean solid, without any interruption of the rounding surface. Adequately shaping the sketch you can create any profile, even eccentric.
Even the Boolean operations allow to obtain the same result, but the dependence of the elements is different.
Since version 0.16_pre 6692 FreeCAD has been equipped with an extra check if fillet and chamfer operation returns valid shape.
http://forum.freecadweb.org/viewtopic.php?f=21&t=15141
PartDesign
Lines created by a PartDesign Fillet can not be selected for an additional fillet or a chamfer.
PartDesign Chamfer has the same behavior.
Lines created by a Chamfer can be selected for an additional chamfer or fillet.
PartDesign fillet and chamfer on tangent edges..........
Part .......... many things are similar.