Skip to content

Commit

Permalink
Merge pull request #10 from andypiper/readme-formatting
Browse files Browse the repository at this point in the history
README formatting tweaks and linting.
  • Loading branch information
jernst authored Dec 30, 2023
2 parents 87a5615 + b53dbb5 commit 9d88c29
Showing 1 changed file with 21 additions and 34 deletions.
55 changes: 21 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,90 +1,77 @@
## Fedidevs.org
# Fedidevs.org

This is the content of [fedidevs.org](https://fedidevs.org/).

It is built with the [Hugo](https://gohugo.io/) static site generator, plus some
Python scripts that generate a few of the pages.
It is built with the [Hugo](https://gohugo.io/) static site generator, plus some Python scripts that generate a few of the pages.

Contributions welcome; file a pull request.

## Software requirements

Install Git and Git-LFS, and initialize it:

```
```shell
$ brew install git
$ brew install git-lfs
$ git lfs install
```

Install Hugo, e.g. on the Mac:

```
```shell
$ brew install hugo
```

## To run the website locally

Get the content:

```
```shell
$ git clone https://github.com/fediverse-devnet/fedidevs.org.git
$ cd fedidevs.org
$ git submodule update
```

Run:

```
```shell
$ hugo server
```

Then go to ``http://localhost:1313/`` (actual port will be printed to the terminal).
Then go to `http://localhost:1313/` (actual port will be printed to the terminal).

## Making changes

If you are not familiar with Hugo, leave all files and directories alone except for
what's in directory ``content/``. There, you find the Markup files that make up the
content of the site.
If you are not familiar with Hugo, leave all files and directories alone except for what's in the `content/` directory. There, you'll find the Markup files that make up the content of the site.

By and large, there are two kinds of files there:
By and large, there are two kinds of content files:

* Normally named Markdown files, such as ``content/foo/bar/baz.md``. This is a "leaf" node
in the page hierarchy, i.e. it will have no child pages. The content will be at URL
``http://localhost:1313/foo/bar/baz/``.
* Standard Markdown files, such as `content/foo/bar/baz.md`. This is a "leaf" node in the page hierarchy, i.e. it will have no child pages. The content will be at URL `http://localhost:1313/foo/bar/baz/`.

* Markdown files named ``_index.md``, such as a ``content/bar/foo/_index.md``. This is a
"directory" node in the page hierarchy, i.e. it can have further child pages. It is a
regular markdown file whose content will be at URL ``http://localhost:1313/bar/foo/``.
But it uses a different layout generation algorithm that automatically inserts links
to its child pages.
* Markdown files named with an underscore prefix `_index.md`, such as a `content/bar/foo/_index.md`. This is a "directory" node in the page hierarchy, i.e. it can have further child pages. It is a regular Markdown file whose content will be at URL `http://localhost:1313/bar/foo/`. It uses a different layout generation algorithm that automatically inserts links to its child pages.

## Intended structure of the site

This describes files below ``content/``.
This describes files below `content/`.

* Front page: Welcome, overview

* ``best-practices/``: A collection of best practices that we consider useful. Not standards, but more
tips and tricks how to best apply the standards to solve certain problems.
* `best-practices/`: A collection of best practices that we consider useful. Not standards, but more tips and tricks how to best apply the standards to solve certain problems.

* ``notes/``: Notes from meetings
* `notes/`: Notes from meetings

* ``projects/``: Contains all information about Fediverse software projects, further subdivided
by category.
* `projects/`: Contains all information about Fediverse software projects, further subdivided by category.

* ``projects/libraries/``: Information about Fediverse-related software libraries.
* `projects/libraries/`: Information about Fediverse-related software libraries.

* ``projects/server-apps/``: Information about Fediverse server-side applications.
* `projects/server-apps/`: Information about Fediverse server-side applications.

* ``projects/mobile-apps/``: Information about Fediverse mobile apps.
* `projects/mobile-apps/`: Information about Fediverse mobile apps.

* ``reference/`` Collection of reference information that is useful for development, such as an
overview over how the ActivityPub actor files look for different server apps.
Much content here is generated.
* `reference/`: Collection of reference information that is useful for development, such as an overview over how the ActivityPub actor files look for different server apps. Much content here is generated.

## Other directories

* ``static/``: Static assets, such as images.
* `static/`: Static assets, such as images.

* ``scripts/``: Scripts that generate content for the site.
* `scripts/`: Scripts that generate content for the site.

0 comments on commit 9d88c29

Please sign in to comment.