Skip to content

Commit 19cd3a7

Browse files
authored
Merge pull request #1436 from stevenengler/docs
Formatting changes to docs
2 parents 351eb72 + 790a9ab commit 19cd3a7

16 files changed

Lines changed: 73 additions & 71 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ code on top of real OS kernels in real time, but are non-determinsitic and have
4141
limited scalability: time distortion can occur if emulated processes exceed an
4242
unknown computational threshold, leading to undefined behavior.
4343

44-
Network simulators (e.g., [ns-3](https://www.nsnam.org) ) offer more
44+
Network simulators (e.g., [ns-3](https://www.nsnam.org)) offer more
4545
experimental control and scalability, but have limited realism because they run
4646
application abstractions in place of real application code.
4747

docs/ci.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
## Continuous integration tests
1+
# Continuous integration tests
22

3-
### On GitHub
3+
## On GitHub
44

55
Our continuous integration tests build and test Shadow on every supported
66
platform and configuration. GitHub runs these tests automatically when making
77
or modifying a pull request, in the [build and test
88
workflow](../.github/workflows/build_shadow.yml). Pull requests without passing
99
integration tests are blocked from merging.
1010

11-
### Running locally
11+
## Running locally
1212

1313
We also have scripts for running the continuous integration tests locally,
1414
inside Docker containers. This can be useful for debugging and for quickly
@@ -40,7 +40,7 @@ sudo ci/run.sh -i -o "ubuntu:18.04;clang;debug fedora:33;gcc;release"
4040

4141
For additional options, run `ci/run.sh -h`.
4242

43-
### Debugging locally
43+
## Debugging locally
4444

4545
After a local run fails, you can use Docker to help debug it. If you previously
4646
ran the tests without the `-i` option, re-run with the `-i` option to rebuild

docs/coding_style.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Coding style
1+
# Coding style
22

3-
### Clang-format
3+
## Clang-format
44

55
Our C code formatting style is defined in our
66
[clang-format](https://clang.llvm.org/docs/ClangFormat.html) [configuration
@@ -31,9 +31,9 @@ Examples:
3131
(cd src/support/logger/rust_bindings && cargo fmt)
3232
```
3333

34-
### Including headers
34+
## Including headers
3535

36-
#### Which headers to include
36+
### Which headers to include
3737

3838
Every source and header file should directly include the headers that export
3939
all referenced symbols and macros.
@@ -53,7 +53,7 @@ This style is loosely based on that used in
5353
supported by the [include what you use](https://include-what-you-use.org/)
5454
tool.
5555

56-
#### Inclusion style
56+
### Inclusion style
5757

5858
Headers included from within the project should use quote-includes, and should
5959
use paths relative to `src/`. e.g. `#include "main/utility/byte_queue.h"`, not

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Contributing
1+
# Contributing
22

33
For trivial fixes (e.g. fixing typos or bugs spanning only a few
44
lines), feel free to send a pull request with your changes. For

docs/developer_guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Debugging and profiling
2+
13
## Building the C-Rust bindings
24

35
When required, you can rebuild all of the C-Rust bindings by running:

docs/install_dependencies.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Installing Dependencies
1+
# Installing Dependencies
22

3-
#### Required:
3+
### Required:
44
+ gcc, gcc-c++ (or clang, clang++)
55
+ python (version >= 3.6)
66
+ glib (version >= 2.32.0)
@@ -11,13 +11,13 @@
1111
+ procps
1212
+ cargo, rustc (version \~ latest)
1313

14-
#### Recommended Python Modules (for helper/analysis scripts):
14+
### Recommended Python Modules (for helper/analysis scripts):
1515
+ numpy, scipy, matplotlib, networkx, lxml, pyyaml
1616

17-
#### Recommended System Tools:
17+
### Recommended System Tools:
1818
+ git, dstat, htop, tmux
1919

20-
### APT (Debian/Ubuntu):
20+
## APT (Debian/Ubuntu):
2121

2222
```bash
2323
# required dependencies
@@ -57,7 +57,7 @@ sudo apt-get install -y \
5757
tmux
5858
```
5959

60-
### YUM (Fedora/CentOS):
60+
## YUM (Fedora/CentOS):
6161

6262
In more recent versions of Fedora and CentOS, `yum` can be exchanged for `dnf`
6363
in these commands. Before running these commands, please check any
@@ -107,7 +107,7 @@ sudo yum install -y \
107107
tmux
108108
```
109109

110-
#### CentOS 7
110+
### CentOS 7
111111

112112
You must enable the EPEL repository using:
113113

@@ -126,7 +126,7 @@ alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \
126126
--family cmake
127127
```
128128

129-
#### CentOS 8
129+
### CentOS 8
130130

131131
As procps-ng-devel, igraph, and igraph-devel are not available on CentOS 8, you
132132
must install them manually.

docs/install_shadow_with_docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Run from the Dockerfile
1+
# Run from the Dockerfile
22

33
1. Install docker from https://docs.docker.com/engine/install/.
44
2. Build container:

docs/maintainer_playbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Maintainer playbook
1+
# Maintainer playbook
22

3-
### Tagging Shadow releases
3+
## Tagging Shadow releases
44

55
We use [Semantic Versioning](https://semver.org/), and increment version
66
numbers with the [bumpversion](https://pypi.org/project/bumpversion/) tool.

docs/migrating_from_1x.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ scripts will either:
1515
Shadow, Shadow will raise an error for this unexpected field.
1616
2. Ignore it and output a warning.
1717

18-
### Converting a configuration file to the Shadow 2.0 format
18+
## Converting a configuration file to the Shadow 2.0 format
1919

2020
The following will create a new configuration file `my-shadow-config.yaml`.
2121

@@ -35,7 +35,7 @@ use the
3535
option to use the Shadow 1.x working directory, but this is an experimental
3636
option and may be removed in the future.
3737

38-
### Converting a network graph file to the Shadow 2.0 format
38+
## Converting a network graph file to the Shadow 2.0 format
3939

4040
The following will create a new network graph file `my-shadow-topology.gml`.
4141

docs/network_graph_overview.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Network Graph Overview
1+
# Network Graph Overview
22

33
Processes running in Shadow do not have access to the internet; instead,
44
processes running on Shadow virtual hosts utilize an internal routing module to
@@ -14,7 +14,7 @@ routers (we do not run routing protocols like
1414

1515
This page describes the routing module and how it can be configured.
1616

17-
#### Graph
17+
## Graph
1818

1919
Shadow represents a network topology over which processes can communicate using
2020
a [weighted graph](https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)).
@@ -32,7 +32,7 @@ Shadow requires that the network graph is
3232
there exists at least one _path_ (a series of one or more edges) between every
3333
pair of nodes.
3434

35-
#### Behavior
35+
## Behavior
3636

3737
The graph encodes network positioning and path characteristics as attributes on
3838
the nodes and edges. Shadow uses the connectivity graph along with the
@@ -50,7 +50,7 @@ The bandwidth of the virtual hosts and the end-to-end latency and packet loss
5050
for a shortest path between two virtual hosts are then enforced for all network
5151
communication.
5252

53-
#### Important Notes
53+
## Important Notes
5454

5555
- The network graph may be directed or undirected, as long as the graph is
5656
structured such that every node can reach every other node through a
@@ -62,14 +62,14 @@ communication.
6262
[use_shortest_path
6363
option](shadow_config_spec.md#networkuse_shortest_path) to `False`.
6464

65-
### Network Graph Attributes
65+
## Network Graph Attributes
6666

6767
We encode attributes on the nodes and edges that allow for configuring the
6868
simulated network characteristics. The attributes and their effect on the
6969
simulated network are described in more detail (alongside a simple example
7070
graph) on [the network graph specification page](network_graph_spec.md).
7171

72-
### Using an Existing Graph
72+
## Using an Existing Graph
7373

7474
We created a large network graph representing worldwide latencies and bandwidths
7575
as of 2018 using the [RIPE Atlas measurement platform](https://atlas.ripe.net).
@@ -86,7 +86,7 @@ advanced knowledge of RIPE Atlas and also require that you possess RIPE Atlas
8686
credits to conduct the measurements needed to create a new graph. We recommend
8787
using our existing graph linked above instead, which we may periodically update.
8888

89-
### Creating Your Own Graph
89+
## Creating Your Own Graph
9090

9191
The python module [networkx](http://networkx.github.io/) can be used to create
9292
and manipulate more complicated graphs.

0 commit comments

Comments
 (0)