Skip to content

Commit b8756bf

Browse files
committed
Added documentation
1 parent da9a57b commit b8756bf

8 files changed

Lines changed: 509 additions & 35 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Page Workflow
2+
3+
permissions:
4+
id-token: write
5+
pages: write
6+
7+
on:
8+
push:
9+
branches: [ main ]
10+
11+
jobs:
12+
build-pages:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Prereqs
17+
run : |
18+
cd ..
19+
sudo apt-get update
20+
sudo apt install ca-certificates gnupg
21+
sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
22+
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
23+
sudo apt update
24+
sudo apt-get install -y git curl unzip mono-devel
25+
curl -o nd.zip https://www.naturaldocs.org/download/natural_docs/2.3.1/Natural_Docs_2.3.1.zip
26+
unzip nd.zip
27+
ls
28+
29+
30+
- name: Checkout Repo
31+
uses: actions/checkout@v4
32+
33+
- name: Run Natural-Docs
34+
run: |
35+
ls
36+
ls ../Natural\ Docs
37+
mono ../Natural\ Docs/NaturalDocs.exe docs/config
38+
ls docs
39+
40+
- name: Upload static files as artifacts
41+
id: deployment
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: docs/html/
45+
46+
deploy-pages:
47+
environment:
48+
name: github-pags
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build-pages
52+
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
# Tooling directories
55
.dvt/*
66

7-
7+
# Documentation Build Files
8+
docs/html
9+
docs/config/Working\ Data/

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,4 @@
22

33
A UVM Agent for the AMBA AHB Protocol
44

5-
## Usage
6-
7-
```SystemVerilog
8-
9-
class user_env extends uvm_env;
10-
11-
endclass : user env
12-
13-
```
5+
Documentation can be found: [https://riscy-lib.github.io/ahb_agent/](https://riscy-lib.github.io/ahb_agent/)

docs/config/Comments.txt

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Format: 2.3.1
2+
3+
# This is the Natural Docs comments file for this project. If you change
4+
# anything here, it will apply to THIS PROJECT ONLY. You can edit the version
5+
# in Natural Docs' Config folder to make the changes apply to all projects,
6+
# but it's recommended that you edit this version instead.
7+
8+
9+
# Ignored Keywords
10+
# ------------------------------------------------------------------------
11+
12+
# If you'd like to prevent keywords from being recognized by Natural Docs,
13+
# you can do it like this:
14+
#
15+
# Ignore Keywords:
16+
# [keyword]
17+
# [keyword]
18+
# ...
19+
20+
21+
# Comment Types
22+
# ------------------------------------------------------------------------
23+
# The syntax reference is after the definitions.
24+
25+
Alter Comment Type: Class
26+
27+
SystemVerilog Keywords:
28+
package, packages
29+
30+
31+
Comment Type: Signals
32+
33+
Display Name: Signal
34+
Plural Display Name: Signals
35+
36+
SystemVerilog Keywords:
37+
signal, signals
38+
39+
40+
Comment Type: Instances
41+
42+
Keywords:
43+
inst
44+
instance, instances
45+
46+
47+
# Each Natural Docs comment has a corresponding type which determine its
48+
# behavior. You can define your own here or override the settings of the
49+
# existing ones.
50+
#
51+
# Comment Type: [name]
52+
# Alter Comment Type: [name]
53+
# Creates a new comment type or changes an existing one.
54+
#
55+
# Display Name: [name]
56+
# Plural Display Name: [name]
57+
# The singular and plural name of the comment type as it should appear in
58+
# the output.
59+
#
60+
# Simple Identifier: [name]
61+
# The name of the comment type using only the letters A to Z. No spaces,
62+
# numbers, symbols, or Unicode allowed. Defaults to the comment type name
63+
# minus any unacceptable characters. This is used to generate things like
64+
# CSS class names.
65+
#
66+
# Scope: [normal|start|end|always global]
67+
# How the comment affects scope. Defaults to normal.
68+
# normal - The comment stays within the current scope.
69+
# start - The comment starts a new scope for all the comments
70+
# beneath it, like class comments.
71+
# end - The comment resets the scope back to global for all the
72+
# comments beneath it, like section comments.
73+
# always global - The comment is defined as a global symbol, but does not
74+
# change the scope for any other comments.
75+
#
76+
# Flags: [flag], [flag], ...
77+
# A combination of settings that apply to the comment type.
78+
# Code, File, or Documentation
79+
# Whether it's used to describe a code element, a file, or is a
80+
# standalone documentation comment. Defaults to Code.
81+
# Variable Type
82+
# Whether it describes a code element that can be used as a variable's
83+
# type.
84+
# Class Hierarchy or Database Hierarchy
85+
# Whether it describes a code element that should be included in the
86+
# class or database hierarchy. Requires Scope: Start.
87+
# Enum
88+
# Whether it describes an enum.
89+
#
90+
# Keywords:
91+
# [keyword]
92+
# [keyword], [plural keyword]
93+
# ...
94+
# A list of the comment type's keywords. Each line after the heading is
95+
# the keyword and optionally its plural form for list comments. You can
96+
# reuse existing keywords to change their definition. When using
97+
# "Alter Comment Type", these keywords are added to the existing ones
98+
# rather than replacing them.
99+
#
100+
# [Language] Keywords:
101+
# [keyword]
102+
# [keyword], [plural keyword]
103+
# ...
104+
# A list of keywords that only apply to the comment type when using a
105+
# specific programming language. Each line after the heading is the
106+
# keyword and optionally its plural form for list comments.

docs/config/Languages.txt

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
Format: 2.3.1
2+
3+
# This is the Natural Docs languages file for this project. If you change
4+
# anything here, it will apply to THIS PROJECT ONLY. You can edit the version
5+
# in Natural Docs' Config folder to make the changes apply to all projects,
6+
# but it's recommended that you edit this version instead.
7+
8+
9+
# Ignored Extensions
10+
# ------------------------------------------------------------------------
11+
12+
# If you'd like to prevent certain file extensions from being scanned by
13+
# Natural Docs, you can do it like this:
14+
#
15+
# Ignore Extensions: [extension] [extension] ...
16+
17+
18+
# Languages
19+
# ------------------------------------------------------------------------
20+
# The syntax reference is after the definitions.
21+
22+
Alter Language: SystemVerilog
23+
24+
Interface Prototype Ender: ;
25+
Property Prototype Ender: ;
26+
Signals Prototype Enders: ; =
27+
Instances Prototype Ender: ;
28+
29+
30+
# These settings define the languages Natural Docs knows how to parse. You
31+
# can define your own here or override the settings of the existing ones.
32+
# Note that all lists are space separated so that commas can be used as
33+
# values.
34+
#
35+
# Language: [name]
36+
# Alter Language: [name]
37+
# Defines a new language or alters an existing one. Its name can use any
38+
# characters. If any of the properties below have an add/replace form, you
39+
# must use that when using Alter Language.
40+
#
41+
# The language Shebang Script is special. It's entry is only used for
42+
# extensions, and files with those extensions have their shebang (#!) lines
43+
# read to determine the real language of the file. Extensionless files are
44+
# always treated this way.
45+
#
46+
# The language Text File is also special. It's treated as one big comment
47+
# so you can put Natural Docs content in them without special symbols.
48+
#
49+
# Extensions: [extension] [extension] ...
50+
# [Add/Replace] Extensions: [extension] [extension] ...
51+
# Defines the file extensions of the language's source files.
52+
#
53+
# Shebang Strings: [string] [string] ...
54+
# [Add/Replace] Shebang Strings: [string] [string] ...
55+
# Defines a list of strings that can appear in the shebang (#!) line to
56+
# designate that it's part of the language.
57+
#
58+
# Simple Identifier: [name]
59+
# The name of the language using only the letters A to Z. No spaces,
60+
# numbers, symbols, or Unicode allowed. Defaults to the language name
61+
# minus any unacceptable characters. This is used to generate things like
62+
# CSS class names.
63+
#
64+
# Aliases: [alias] [alias] ...
65+
# [Add/Replace] Aliases: [alias] [alias] ...
66+
# Defines alternative names for the language that can be used to start a
67+
# code block.
68+
#
69+
#
70+
# Properties for Basic Language Support Only
71+
# ------------------------------------------------------------------------
72+
# If you're adding your own language to Natural Docs you must define these.
73+
#
74+
# Line Comments: [symbol] [symbol] ...
75+
# Defines a space-separated list of symbols that are used for line comments,
76+
# if any.
77+
#
78+
# Block Comments: [opening sym] [closing sym] [opening sym] [closing sym] ...
79+
# Defines a space-separated list of symbol pairs that are used for block
80+
# comments, if any.
81+
#
82+
# Member Operator: [symbol]
83+
# Defines the default member operator symbol. The default is a dot.
84+
#
85+
# Line Extender: [symbol]
86+
# Defines the symbol that allows a prototype to span multiple lines if
87+
# normally a line break would end it.
88+
#
89+
# Enum Values: [global|under type|under parent]
90+
# Defines how enum values are referenced. The default is global.
91+
# global - Values are always global, referenced as 'value'.
92+
# under type - Values are under the enum type, referenced as
93+
# 'class.enum.value'.
94+
# under parent - Values are under the enum's parent, referenced as
95+
# 'class.value'.
96+
#
97+
# Case Sensitive: [yes|no]
98+
# Defines whether the language's identifiers are case sensitive. The
99+
# default is yes.
100+
#
101+
# Block Comments Nest: [yes|no]
102+
# Defines whether the language's block comments can nest. The default is
103+
# no.
104+
#
105+
# [Comment Type] Prototype Enders: [symbol] [symbol] ...
106+
# When defined, Natural Docs will attempt to get a prototype from the code
107+
# immediately following the comment type. It stops when it reaches one of
108+
# these symbols. Use \n for line breaks.

0 commit comments

Comments
 (0)