All Projects → fortran-lang → fpm-docs

fortran-lang / fpm-docs

Licence: MIT license
Documentation repository for the Fortran package manager (fpm)

Programming Languages

fortran
972 projects
CSS
56736 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects
HTML
75241 projects

Projects that are alternatives of or similar to fpm-docs

fortran-error-handler
Comprehensive error framework for applications requiring functional and robust error handling, utilising the power of modern object-oriented Fortran.
Stars: ✭ 19 (-20.83%)
Mutual labels:  fpm, fortran-package-manager
fortran-curl
Fortran 2008 interface bindings to libcurl
Stars: ✭ 25 (+4.17%)
Mutual labels:  fpm, fortran-package-manager
slsqp
Modern Fortran Edition of the SLSQP Optimizer
Stars: ✭ 57 (+137.5%)
Mutual labels:  fortran-package-manager
bedrock-wordpress-docker
Dockerized Wordpress using Bedrock
Stars: ✭ 36 (+50%)
Mutual labels:  fpm
quickstart-fortran
An easy Windows installer for GFortran and the Fortran Package Manager
Stars: ✭ 44 (+83.33%)
Mutual labels:  fortran-package-manager
toml-f
TOML parser implementation for data serialization and deserialization in Fortran
Stars: ✭ 69 (+187.5%)
Mutual labels:  fortran-package-manager
coarray-tutorial
A short tutorial to get people started with Fortran's coolest feature, coarrays.
Stars: ✭ 35 (+45.83%)
Mutual labels:  fortran-tutorial
pyplot-fortran
For generating plots from Fortran using Python's matplotlib.pyplot 📈
Stars: ✭ 158 (+558.33%)
Mutual labels:  fortran-package-manager
forlab
Forlab is a Fortran module that provides a lot of functions for scientific computing mostly inspired by Matlab and Python's package NumPy.
Stars: ✭ 26 (+8.33%)
Mutual labels:  fpm
docker base images
Vlad's Base Images for Docker
Stars: ✭ 61 (+154.17%)
Mutual labels:  fpm
FortranTip
Short instructional Fortran codes associated with Twitter @FortranTip
Stars: ✭ 39 (+62.5%)
Mutual labels:  fortran-tutorial

Fpm documentation

pages test

Repository for building the documentation pages for the Fortran package manager (fpm).

Getting started

Get the code

git clone https://github.com/fortran-lang/fpm-docs
cd fpm-docs

Install dependencies

The documentation pages are created using sphinx. You first need to install the required dependencies using conda or pip. This project uses

conda

conda env create -n sphinx -f environment.yaml
conda activate sphinx

pip

python3 -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r requirements.txt

Build fpm-docs

Build the documentation by invoking

make html

The website will be built in _build/html and can be previewed by opening the page with a browser (e.g. firefox, chromium or similar):

firefox file://$PWD/_build/html/index.html

By default all languages will be built. To limit the build to a single language subtree, i.e. English, use

make html LANGUAGES=en

Translating via weblate

Translations can be contributed via weblate.

Translation status

Update or add translations

The documentation uses the sphinx-intl utility to generate websites for multiple languages. It generates *.po files, which contain the original sentences and a placeholder for translations.

To update translations run

make gettext

if you only want to update a single translation add LANGUAGES=de to the command. This command will generate the message catalog (*.pot) and update the *.po files in the locale directory of the respective translations. Then edit the *.po files, e.g. locale/de/LC_MESSAGES/index.po. In the *.po files are paragraphs like

#: ../../pages/index.md:16
msgid "Package manager and build system for Fortran"
msgstr ""

The first line describes the file and line where to find the original text.

The second line is the original text. Don't edit this line, edit the original document instead.

The third line is meant for the translation.

To continue a long string in another line, simply close the string in the current line with " and open another one in the line underneath. E.g.

msgstr "This is "
"one string"

don't forget a space between 'is' and 'one'

After adding or updating translations build the documentation as described above.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].