Skip to content

Commit

Permalink
[doc] Rewrite most frontmatters to Markdown titles
Browse files Browse the repository at this point in the history
Completely throw away the frontmatter and only keep the title which is
turned into a Markdown title.

To recreate the rewrite, run the added script,
`util/rewrite_frontmatter.py`, in the root of the repo.

```sh
python3 util/rewrite_frontmatter.py ./
```

Signed-off-by: Hugo McNally <[email protected]>
Co-authored-by: Amaury Pouly <[email protected]>
  • Loading branch information
2 people authored and GregAC committed Mar 7, 2023
1 parent 544e7a6 commit f6298b3
Show file tree
Hide file tree
Showing 293 changed files with 353 additions and 898 deletions.
4 changes: 1 addition & 3 deletions doc/contributing/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Contributing to OpenTitan
---
# Contributing to OpenTitan

Thank you for your interest in contributing to OpenTitan.
This document provides some guidelines to making those contributions.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/bazel_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Bazel Notes
---
# Bazel Notes

Both OpenTitan hardware and software is built with Bazel.
While our [Getting Started](https://docs.opentitan.org/doc/guides/getting_started/) guides detail some of the Bazel commands that can be used to build both types of artifacts, below are detailed notes on:
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/ci/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "OpenTitan Continuous Integration"
---
# OpenTitan Continuous Integration

All changes to the OpenTitan source code are tested thoroughly in a continuous integration system.
Tests run automatically when changes are proposed for inclusion by submitting a pull request, and on the `master` branch after changes are merged.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/detailed_contribution_guide/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "In-depth guide to contributing to OpenTitan"
---
# In-depth guide to contributing to OpenTitan

The way we work on OpenTitan is very similar to what is done in other collaborative open-source projects.
For a brief overview see [Contributing to OpenTitan](../README.md).
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/directory_structure.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Directory Structure"
---
# Directory Structure

This document provides an overview of the opentitan repository directory structure.
The hierarchy underneath the root is fairly self explanatory, containing the following:
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/dv/methodology/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Design Verification Methodology within OpenTitan"
---
# Design Verification Methodology within OpenTitan

Verification within OpenTitan combines the challenges of industry-strength verification methodologies with open source ambitions.
When in conflict, quality must win, and thus we aim to create a verification product that is equal to the quality required from a full production silicon chip tapeout.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/dv/sec_cm_dv_framework/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Security Countermeasure Verification Framework"
---
# Security Countermeasure Verification Framework

## Purpose
In a security chip, there are many hardening security countermeasures implemented in security blocks.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/fpga/get_a_board.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Get an FPGA Board"
---
# Get an FPGA Board

FPGA boards come at different price points, with the price being a good indicator for how much logic the FPGA can hold.
The following sections give details of how to obtain our supported FPGA boards.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/fpga/ref_manual_fpga.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "FPGA Reference Manual"
---
# FPGA Reference Manual

This manual provides additional usage details about the FPGA.
Specifically, it provides instructions on SW development flows and testing procedures.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/github_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: GitHub Notes
---
# GitHub Notes

The OpenTitan source tree is maintained on GitHub in a [monolithic repository](https://github.com/lowRISC/opentitan) called opentitan.

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/hw/comportability/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Comportability Definition and Specification"
---
# Comportability Definition and Specification

## Document Goals

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/hw/design.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Designing Hardware"
---
# Designing Hardware

This document aims to clarify how to get started with a hardware design within the OpenTitan project.
Design in this context nominally refers to a new [Comportable Peripheral](./comportability/README.md) but can include high level constructs like device reset strategy, etc.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/hw/methodology.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Design Methodology within OpenTitan"
---
# Design Methodology within OpenTitan

The design methodology within OpenTitan combines the challenges of industry-strength design methodologies with open source ambitions.
When in conflict, quality must win, and thus we aim to create a final design product that is equal to the quality required from a full production silicon chip tapeout.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/hw/vendor.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Work with hardware code in external repositories
---
# Work with hardware code in external repositories

OpenTitan is not a closed ecosystem: we incorporate code from third parties, and we split out pieces of our code to reach a wider audience.
In both cases, we need to import and use code from external repositories in our OpenTitan code base.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Style Guides"
---
# Style Guides

OpenTitan's CI enforces what it can of the following style guides to avoid conflict, toil and confusion.
However, code reviewers are also responsible for enforcing coding style guidelines and best practices.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/asm_coding_style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "RISC-V Assembly Style Guide"
---
# RISC-V Assembly Style Guide

## Basics

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/c_cpp_coding_style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "C and C++ Coding Style Guide"
---
# C and C++ Coding Style Guide

## Basics

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/guidance_for_volatile.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Guidance for `volatile` in OpenTitan Silicon Creator Code"
---
# Guidance for `volatile` in OpenTitan Silicon Creator Code

## TL;DR

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/hjson_usage_style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Hjson Usage and Style Guide"
---
# Hjson Usage and Style Guide

## Basics

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/markdown_usage_style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Markdown Usage and Style Guide"
---
# Markdown Usage and Style Guide

## Basics

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/otbn_style_guide.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "OTBN Assembly Style Guide"
---
# OTBN Assembly Style Guide

Where possible, OTBN assembly should follow the same principles as the [RISC-V assembly style guide](./asm_coding_style.md).
This guide describes additional OTBN-specific guidelines, and places where OTBN assembly can or should diverge from the RISC-V style guidelines.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/style_guides/python_coding_style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Python Coding Style Guide"
---
# Python Coding Style Guide

## Basics

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/sw/device_interface_functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Device Interface Functions (DIFs)"
---
# Device Interface Functions (DIFs)

## Motivation

Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/sw/otbn_sw.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Writing and building software for OTBN"
---
# Writing and building software for OTBN

OTBN is the OpenTitan Big Number accelerator and this document describes how to write and build software for it.
The [OTBN reference manual](../../../hw/ip/otbn/README.md) describes the hardware and associated ISA.
Expand Down
4 changes: 1 addition & 3 deletions doc/contributing/system_list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "List of Top-Level Designs"
---
# List of Top-Level Designs

This page lists all top-level designs and their targets that are contained within this repository.
Click on the design name to get more information about the design.
Expand Down
7 changes: 1 addition & 6 deletions doc/guides/getting_started/src/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
title: "Getting Started"
aliases:
- /doc/ug/getting_started
- /doc/ug/install_instructions
---
# Getting Started

Welcome!
This guide will help you get OpenTitan up and running.
Expand Down
4 changes: 1 addition & 3 deletions doc/guides/getting_started/src/build_docs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Building documentation"
---
# Building documentation

The documentation for OpenTitan is available [online](https://docs.opentitan.org).
The creation of documentation is mainly based around the conversion from Markdown to HTML files with [Hugo](https://gohugo.io/).
Expand Down
6 changes: 1 addition & 5 deletions doc/guides/getting_started/src/build_sw.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: Building (and Testing) Software
aliases:
- /doc/ug/getting_started_build_sw
---
# Building (and Testing) Software

_Before following this guide, make sure you have read the_:
* main [Getting Started](README.md) instructions,
Expand Down
4 changes: 1 addition & 3 deletions doc/guides/getting_started/src/install_openocd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Install OpenOCD
---
# Install OpenOCD

OpenOCD is a tool to connect with the target chip over JTAG and similar transports.
It also provides a GDB server which is an "intermediate" when debugging software on the chip with GDB.
Expand Down
4 changes: 1 addition & 3 deletions doc/guides/getting_started/src/install_vivado/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Install Vivado
---
# Install Vivado

Generating a bitstream for Xilinx devices requires a
[Vivado](https://www.xilinx.com/products/design-tools/vivado.html) installation.
Expand Down
6 changes: 1 addition & 5 deletions doc/guides/getting_started/src/setup_dv.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: "Design Verification Setup"
aliases:
- /doc/ug/getting_started_dv
---
# Design Verification Setup

_Before following this guide, make sure you've followed the [dependency installation and software build instructions](https://opentitan.org/book/doc/guides/getting_started/)._

Expand Down
6 changes: 1 addition & 5 deletions doc/guides/getting_started/src/setup_formal.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: "Formal Verification Setup"
aliases:
- /doc/ug/getting_started_formal
---
# Formal Verification Setup

_Before following this guide, make sure you've followed the [dependency installation and software build instructions](README.md)._

Expand Down
6 changes: 1 addition & 5 deletions doc/guides/getting_started/src/setup_fpga.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: "FPGA Setup"
aliases:
- /doc/ug/getting_started_fpga
---
# FPGA Setup

_Before following this guide, make sure you've followed the [dependency installation and software build instructions](README.md)._

Expand Down
6 changes: 1 addition & 5 deletions doc/guides/getting_started/src/setup_verilator.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: Verilator Setup
aliases:
- /doc/ug/getting_started_verilator
---
# Verilator Setup

_Before following this guide, make sure you've followed the [dependency installation instructions](README.md)._

Expand Down
4 changes: 1 addition & 3 deletions doc/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "OpenTitan"
---
# OpenTitan

## Introduction to OpenTitan

Expand Down
4 changes: 1 addition & 3 deletions doc/project_governance/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Introduction to the OpenTitan Project"
---
# Introduction to the OpenTitan Project

OpenTitan is a collaborative hardware and software development program with contributors from many organizations.
This area gives some more information about how the project itself is organized and how to contribute.
Expand Down
4 changes: 1 addition & 3 deletions doc/project_governance/checklist/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Signoff Checklist"
---
# Signoff Checklist

This document explains the recommended checklist items to review when transitioning from one [Development Stage](../development_stages.md) to another, for design, verification, and [software device interface function (DIF)](../../contributing/sw/device_interface_functions.md) stages.
It is expected that the items in each stage (D1, V1, S1, etc) are completed.
Expand Down
4 changes: 1 addition & 3 deletions doc/project_governance/committers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Committers"
---
# Committers

Committers are individuals with repository write access.
While everyone can and is encouraged to contribute by reviewing code, committers are responsible for final approval and merge.
Expand Down
5 changes: 1 addition & 4 deletions doc/project_governance/development_stages.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
aliases: [/doc/project/hw_stages/]
title: OpenTitan Hardware Development Stages
---
# OpenTitan Hardware Development Stages

## Document Goals

Expand Down
4 changes: 1 addition & 3 deletions doc/project_governance/rfc_process.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: OpenTitan RFC Process
---
# OpenTitan RFC Process

## Introduction

Expand Down
4 changes: 1 addition & 3 deletions doc/project_governance/technical_committee.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "OpenTitan Technical Committee"
---
# OpenTitan Technical Committee

The OpenTitan Technical Committee is part of the [OpenTitan governance structure](./README.md) and the definitive description of its operations and responsibilities are stated in the [OpenTitan Technical Charter](https://static.opentitan.org/technical-charter.pdf).
Key responsibilities defined in that document include:
Expand Down
4 changes: 1 addition & 3 deletions doc/rust_for_c_devs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Rust for Embedded C Programmers"
---
# Rust for Embedded C Programmers

## Foreword

Expand Down
5 changes: 1 addition & 4 deletions doc/security/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
title: "Security"
url: "/security/"
---
# Security

## Overview

Expand Down
4 changes: 1 addition & 3 deletions doc/security/implementation_guidelines/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
title: Implementation Guidelines
---
# Implementation Guidelines

{{% sectionContent %}}
4 changes: 1 addition & 3 deletions doc/security/implementation_guidelines/hardware/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Secure Hardware Design Guidelines"
---
# Secure Hardware Design Guidelines

## Overview

Expand Down
4 changes: 1 addition & 3 deletions doc/security/logical_security_model/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "OpenTitan Logical Security Model"
---
# OpenTitan Logical Security Model

## Overview

Expand Down
4 changes: 1 addition & 3 deletions doc/security/specs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "OpenTitan Security Model Specification"
---
# OpenTitan Security Model Specification

The current version of the security model targets discrete silicon
implementations of OpenTitan. The architecture for an integrated IP solution
Expand Down
4 changes: 1 addition & 3 deletions doc/security/specs/attestation/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: "Device Attestation"
---
# Device Attestation

## Overview

Expand Down
Loading

0 comments on commit f6298b3

Please sign in to comment.