Skip to content

Commit 0e3b671

Browse files
author
Marwan Mattar
authored
Merge pull request #466 from Unity-Technologies/docs/doxygen
Finalized doxygen pages
2 parents 5ad10fa + 6ea5822 commit 0e3b671

File tree

6 files changed

+35
-42
lines changed

6 files changed

+35
-42
lines changed

docs/API-Reference.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# API Reference
2+
3+
Our developer-facing C# classes (Academy, Agent, Decision and
4+
Monitor) have been documented to be compatabile with
5+
[Doxygen](http://www.stack.nl/~dimitri/doxygen/) for auto-generating HTML
6+
documentation.
7+
8+
To generate the API reference,
9+
[download Doxygen](http://www.stack.nl/~dimitri/doxygen/download.html) and run
10+
the following command within the `docs/` directory:
11+
12+
doxygen dox-ml-agents.conf
13+
14+
`dox-ml-agents.conf` is a Doxygen configuration file for ML-Agents
15+
that includes the classes that have been properly formatted.
16+
The generated HTML files will be placed
17+
in the `html/` subdirectory. Open `index.html` within that subdirectory to
18+
navigate to the API reference home. Note that `html/` is already included in
19+
the repository's `.gitignore` file.
20+
21+
In the near future, we aim to expand our documentation
22+
to include all the Unity C# classes and Python API.

docs/Readme.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
* [ML-Agents Glossary](Glossary.md)
3636
* [Limitations & Common Issues](Limitations-and-Common-Issues.md)
3737

38-
## C# API and Components
39-
* Academy
40-
* Agent
41-
* Decision
42-
* Monitor
43-
44-
## Python API
38+
## API Docs
39+
* [API Reference](API-Reference.md)
4540
* [How to use the Python API](Python-API.md)
46-

docs/dox-ml-agents.conf

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PROJECT_NAME = "ML-Agents"
3131
# could be handy for archiving the generated documentation or if some version
3232
# control system is used.
3333

34-
PROJECT_NUMBER = v0.2
34+
PROJECT_NUMBER = v0.3
3535

3636
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3737
# for a project that appears at the top of each page and should give viewer a
@@ -783,33 +783,10 @@ WARN_LOGFILE =
783783
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
784784
# Note: If this tag is empty the current directory is searched.
785785

786-
INPUT = ML-Agents-Overview.md \
787-
Background-Unity.md \
788-
Background-Machine-Learning.md \
789-
Background-TensorFlow.md \
790-
Installation.md \
791-
Installation-Docker.md \
792-
Background-Jupyter.md \
793-
Getting-Started-with-Balance-Ball.md \
794-
Learning-Environment-Examples.md \
795-
Learning-Environment-Create-New.md \
796-
Learning-Environment-Design.md \
797-
Learning-Environment-Design-Agents.md \
798-
Learning-Environment-Design-Academy.md \
799-
Learning-Environment-Design-Brains.md \
800-
Training-ML-Agents.md \
801-
Training-PPO.md \
802-
Training-Curriculum-Learning.md \
803-
Training-Imitation-Learning.md \
804-
Using-TensorFlow-Sharp-in-Unity.md \
805-
Training-on-Amazon-Web-Service.md \
806-
Using-Tensorboard.md \
807-
Python-API.md \
808-
Feature-Broadcasting.md \
809-
Feature-Monitor.md \
810-
Limitations-and-Common-Issues.md \
811-
../unity-environment/Assets/ML-Agents/Scripts \
812-
../python/unityagents
786+
INPUT = ../unity-environment/Assets/ML-Agents/Scripts/Academy.cs \
787+
../unity-environment/Assets/ML-Agents/Scripts/Agent.cs \
788+
../unity-environment/Assets/ML-Agents/Scripts/Monitor.cs \
789+
../unity-environment/Assets/ML-Agents/Scripts/Decision.cs
813790

814791
# This tag can be used to specify the character encoding of the source files
815792
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

docs/doxygen/Readme.md

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

33
To generate the API reference as HTML files, run:
44

5-
doxygen ml-agents.conf
5+
doxygen dox-ml-agents.conf

unity-environment/Assets/ML-Agents/Scripts/Agent.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ public class AgentParameters
118118
public bool resetOnDone = true;
119119

120120
/// <summary>
121-
/// Whether to enable On Demand Decision Making or make a decision at
121+
/// Whether to enable On Demand Decisions or make a decision at
122122
/// every step.
123123
/// </summary>
124124
public bool onDemandDecision;
125125

126126
/// <summary>
127-
/// Number of actions between decisions (used when On Demand Decision
128-
/// Making is turned off).
127+
/// Number of actions between decisions (used when On Demand Decisions
128+
/// is turned off).
129129
/// </summary>
130130
public int numberOfActionsBetweenDecisions;
131131
}
@@ -237,7 +237,7 @@ public abstract class Agent : MonoBehaviour
237237
int stepCount;
238238

239239
// Flag to signify that an agent has been reset but the fact that it is
240-
// done has not been communicated (required for On Demand Decision Making).
240+
// done has not been communicated (required for On Demand Decisions).
241241
bool hasAlreadyReset;
242242

243243
// Flag to signify that an agent is done and should not reset until

unity-environment/Assets/ML-Agents/Scripts/CoreBrainHeuristic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using UnityEditor;
77
#endif
88

9-
/// CoreBrain which decides actions using developer-provided Decision.cs script.
9+
/// CoreBrain which decides actions using developer-provided Decision script.
1010
public class CoreBrainHeuristic : ScriptableObject, CoreBrain
1111
{
1212
[SerializeField]

0 commit comments

Comments
 (0)