Hi there! Internet Explorer is no longer supported.

Please use a modern web browser such as Firefox, Chromium or Edge. Thank you!

Guidelines

Guidelines for contributing to the website.

注記

このページはまだ翻訳されていないため、代わりに英語版が表示されます。協力していただけませんか? 貢献

Is it recommended to use the Content Management System Content Management SystemHow to use the Sveltia CMS for the FreeCAD website. to add, edit and delete content, such as pages, translations, and resources, as it provides a user-friendly interface, adequate settings and pre-configured forms that facilitate the contributing workflow.

Nevertheless, please read the few following guidelines to ensure contributions are in line with the project’s standards and help make the process easier and efficient for everyone involved.

Text

Translations

To improve translations and add locales, see the dedicated locales page Translations and languagesTranslate content and configure locales for the website..

Current supported languages are defined in the general site configuration config/_default/languages.yaml.

Content translations are stored in separate content root directories, e.g. /content/en/ and /content/zh/. Page resources such as images, videos, and more, only need to be placed in the default language site (en for English), using the page bundle approach, as they are automatically linked among languages.

Translations of the Theme are handled by translations tables in themes/trigo/i18n.

Before a new language is enabled, the main navigation pages (Homepage, Features, Download, News, Community, Documentation and Donate) and the Theme strings must be translated. If willing to add a new language, use the provided feature issue template indicating who will translate and who will proof-read/review.

The CMS allows to edit and add translated content easily, based on the original English content, and provides automatic online translation services via API keys.

Illustrations

![alternative text for image](img.webp “image caption”)

Please avoid adding links to images (e.g. [![alt](img.webp)](link)) as the Markdown parser and render hooks mix HTML block-level with inline elements, which is invalid. Use the figure shortcode instead, or add links to nearby heading, text or caption.

A minimum width of about 2000 pixels is recommended. A square or landscape format ratio of 2:1 maximum are recommended. The WebP graphics file format is recommended, with a compression quality of about 80%. Animated GIF and WEBP files are supported, the latter being recommended. AVIF is currently not supported. Media metadata can be stripped, as they are currently not used.

The theme templates resize and crop images at build time depending on their use. The Content Management System also resizes uploaded images at the correct resolution. In most cases, content contributors only need to add one WebP file about 2000px wide.

Several theme shortcodes ShortcodesBundled Trigo Theme and Hugo shortcodes to enhance content. are available to enhance the layout and arrangement of multiple illustrations.

Vector graphics

Scalable Vector Graphics (SVG) illustrations are supported as well, both as hero cover and page content images. For proper display and theme features support, SVG files must be formatted as below:

<svg xmlns="http://www.w3.org/2000/svg"
  id="<NAME>"
  viewBox="0 0 <WIDTH> <HEIGHT>">
  ...
</svg>

In the svg root node, the identifier <NAME> must be the slugified filename (e.g. id="my-svg-graph"). The <WIDTH> and <HEIGHT> of the viewBox must be provided based on the canvas dimensions (e.g. viewBox="0 0 100 100"). Do not include the width and height attributes, use the viewBox only.

For simple vector graphics illustrations, style attributes such as fill, stroke, font, text, etc. can be specified in the svg root node. To provide two variants for the light and dark theme chroma, use the general currentColor property value (e.g. stroke="currentColor") to rely on the theme default style, or use the CSS variables of the theme (e.g. fill="var(--theme)") at the root or as inline style for each node.

It is also recommended to simplify and cleanup the svg code by removing unused document resources, definitions, groups, nodes, and attributes. In most cases, one decimal precision is plenty enough and makes the file significantly lighter.

Theme and configuration

To tweak the style of the Trigo theme, enhance it by adding new features, fix issues, or deep dive into the FreeCAD website configuration, see the dedicated setup and theme page Setup and ThemeEnhance the website project structure, configuration, and the Trigo Theme..

Licensing

The whole FreeCAD website repository is licensed under the GNU Lesser General Public License Version 2.1.

Content

Content of the website is licensed under Creative Commons Attribution ShareAlike 4.0 International. By default, it is copyrighted by and attributed to “FreeCAD”. If they wish so, authors can specify the respective attribution for the content they produce. For Markdown files, the attribution is specified in the author field of the Front Matter.

By submitting Pull Requests to this repository, make sure who is the author of the content. Make sure rights to share under the CC-BY-SA 4.0 license and original author mention are respected. Also note that sharing images with people is subject to obtaining appropriate consent.

FreeCAD branded resources

The trademark of FreeCAD branded resources (e.g. FreeCAD logo) is registered and owned by the FreeCAD Project Association.

Trigo Theme for Hugo

The Trigo Theme is licensed under the MIT License.