Inside of your project, you'll see the following folders and files:
.
├── public/
├── src/
│ ├── assets/
│ ├── components/
│ ├── content/
│ │ └── docs/
│ │ ├── about/authors.json
│ │ └── blog/
│ ├── utils/
│ └── content.config.ts
├── astro.config.mjs
├── package.json
└── tsconfig.jsonFolder src/content/docs/blog/ is used for the blog posts.
Other folders are used for classic website navigation.
Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.
Images can be added to src/assets/ and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the public/ directory.
To install the website locally:
- Install Node
- Execute
npm install - Execute
npm run dev
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
We are using the Starlight with many components that can be used directly in markdown! Do not hesitate to use them.
When adding a new wiki page, you must link the page in the astro.config.mjs under the starlightSidebarTopics item.
It allows one to organize the page.
There are automatic way to import all pages, but they sort files by name, and sometimes we do not want that.
- Create a new file under
src/content/docs/blog/, namedYYYY-MM-DD-short-title.md(or.mdxto use Starlight components) - Add the frontmatter
---
authors:
- BenoitVerhaeghe
title: "Coasters collection"
description: "How to create a minimal model in Moose"
date: 2021-02-15
lastUpdated: 2021-03-04
tags:
- meta-model
cover:
image: "./img/posts/2021-02-04-Coasters/background.jpg"
alt: ""
series: "Famix Tools"
---| Field | Required | Usage |
|---|---|---|
authors |
yes | Keys of authors.json (see Authors) |
title |
yes | |
date |
yes | Publication date, used to sort the posts. Keep it consistent with the file name |
description |
no | One sentence, used for SEO and link previews (not displayed on the page) |
lastUpdated |
no | Date of the last significant update |
tags |
no | See Tags |
cover |
no | Image displayed at the top of the post and in the blog list |
series |
no | Name of a series of posts. All posts sharing the same name are listed in a box at the top |
Fields from the former Jekyll blog (
subtitle,background,header-img,comments) are ignored by Starlight: do not use them.
Images of a post go in src/content/docs/blog/img/posts/<file name of the post>/ and are referenced with a relative link.
Reuse an existing tag before creating a new one, and respect its exact spelling (tags are case-sensitive).
| Tag | Usage |
|---|---|
meta-model |
Famix meta-models, their design and evolution |
Famix-tools |
Tools working on Famix models (visitors, UML, queries…) |
FAST |
FAST models (AST) and the tools on top of them |
infrastructure |
Parsers, importers, and Moose internals |
browser |
Moose browsers and UI (Spec) |
CI |
Running Moose in a continuous integration |
Mining Software Repositories |
Analysis of the history of a project (git, GitProjectHealth) |
transformation |
Code transformation |
story |
Real use case of Moose on a project |
Python, Java |
Language-specific posts |
When writing several posts on the same topic, give them the same series value.
A box listing all the posts of the series (sorted by date) is then displayed at the top of each of them.
Current series are: Transformation journey, Ownership cartography, Parametrics in Famix, Famix Tools, Moose and Tree-sitter, FAST-Python analyses.
If you want to be sure the blogpost in not directly published, do not forget to add the frontmatter
---
# Exclude this page from production builds
draft: true
---All the people of the project are described in a single file: src/content/docs/about/authors.json.
It is used by the team page, the publications (to link the team members), and the blog posts authors (through src/utils/authors.ts).
To add yourself, add an entry to authors.json:
"BenoitVerhaeghe": {
"name": "Benoit Verhaeghe",
"role": "Cookie Lover",
"bio": "R&D engineer at <a href='https://berger-levrault.com/'>Berger-Levrault</a>",
"image": "https://github.com/@av/u/6225039",
"github": "https://github.com/badetitou",
"linkedin": "https://www.linkedin.com/in/benoitverhaeghe/",
"orcid": "https://orcid.org/0000-0002-4588-2698",
"personnal-website": "https://badetitou.fr"
}- The key (
BenoitVerhaeghe) is the identifier used in theauthorsfield of the blog posts. Use only ASCII letters (no accent, no space). name,roleandimageare required.roleis also the title displayed on the blog posts.biois optional and may contain HTML links.github,linkedin,twitter,orcid,personnal-websiteare optional. The first available amongpersonnal-website,orcid,githubandlinkedinis used as profile link.gravatar-hashis optional: if set, the Gravatar is used instead ofimage.- The
namemust match the way you are named inbibliography.jsonto be linked in the publications.
To use Latex in your blogpost, you need to:
- Create a file in
mdxformat, for examplesrc/content/docs/blog/2026-08-11-building-an-ownership-map-of-a-system.mdx - add
import 'katex/dist/katex.min.css';
Then, inline math can be written as $x^2$ and block math can be written as