Build docs in netlify with docfx

This commit is contained in:
Gary Tierney
2019-08-04 03:15:46 +01:00
parent 0b61e559fc
commit 43acb3798d
13 changed files with 129 additions and 22 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
FROM mono:latest
RUN apt-get update -y && apt-get install -y unzip
RUN apt-get update -y && apt-get install -y unzip git
RUN mkdir -p /docfx
WORKDIR /docfx
RUN curl -L https://github.com/dotnet/docfx/releases/download/v2.43.3/docfx.zip -O \
RUN curl -L https://github.com/dotnet/docfx/releases/download/v2.44/docfx.zip -O \
&& unzip docfx.zip \
&& chmod +r /docfx
+1
View File
@@ -0,0 +1 @@
*.yml
+5 -5
View File
@@ -8,18 +8,18 @@ dependencies {
doclet files("vendor/docfx-doclet-1.0-SNAPSHOT-jar-with-dependencies.jar")
}
gradle.projectsEvaluated {
gradle.projectsEvaluated {
task generateApiDocs(type: Javadoc) {
source = project(":game").sourceSets.main.java.sourceDirectories
classpath = project(":game").configurations.runtimeClasspath + project(":game").sourceSets.main.output
source = project(":game").sourceSets.main.java.sourceDirectories
classpath = project(":game").configurations.runtimeClasspath + project(":game").sourceSets.main.output
dependsOn(project(":game").assemble)
options.encoding 'UTF-8'
destinationDir = file("build/generated-files")
options.addStringOption("doclet", "com.microsoft.doclet.DocFxDoclet")
options.docletpath = configurations.doclet.toList()
dependsOn(project(":game").assemble)
}
}
}
+14 -14
View File
@@ -1,18 +1,12 @@
{
"metadata": [
{
"src": [
{
"files": [
]
}
],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false
}
],
"build": {
"globalMetadata": {
"_appTitle": "Apollo Documentation",
"_gitContribute": {
"repo": "https://github.com/apollo-rsps/apollo",
"branch": "kotlin-experiments"
}
},
"content": [
{
"files": [
@@ -27,6 +21,12 @@
"toc.yml",
"*.md"
]
},
{
"files": [
"plugin-api/toc.yml",
"plugin-api/spec/**.yml"
]
}
],
"resource": [
@@ -39,7 +39,7 @@
"overwrite": [
{
"files": [
"apidoc/**.md"
"plugin-api/overwrites/**.md"
],
"exclude": [
"obj/**",
View File
@@ -0,0 +1,5 @@
---
uid: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction"
---
Some test text
@@ -0,0 +1,21 @@
### YamlMime:ManagedReference
items:
- uid: "org.apollo.game.plugin.action"
id: "action"
children:
- "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction"
langs:
- "java"
- "kotlin"
name: "org.apollo.game.plugin.action"
nameWithType: "org.apollo.game.plugin.action"
fullName: "org.apollo.game.plugin.action"
type: "Namespace"
summary: "Contains action types that can be listened on by plugin scripts."
syntax:
content: "package org.apollo.game.plugin.action"
references:
- uid: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction"
name: "ObjectAction<T>"
nameWithType: "ObjectAction<T>"
fullName: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction<T>"
@@ -0,0 +1,53 @@
### YamlMime:ManagedReference
items:
- uid: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction"
id: "ObjectAction"
parent: "org.apollo.game.plugin.action"
children:
- "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction.option"
langs:
- "java"
- "kotlin"
name: "ObjectAction<T>"
nameWithType: "ObjectAction<T>"
fullName: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction<T>"
type: "Class"
package: "org.apollo.game.plugin.action"
summary: |
An object action is sent when a user interacts with a game object in the workd by using one of
the options presented when the context menu for the object is available.
syntax:
content: "class ObjectAction<T>"
typeParameters:
- id: "T"
- uid: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction.option"
id: "mob"
parent: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction"
langs:
- "java"
name: "mob"
nameWithType: "ObjectAction<T>.option"
fullName: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction<T>.option"
type: "Field"
package: "org.apollo.game.plugin.action"
summary: "The option selected when performing the action."
syntax:
content: "val option: String"
return:
type: "String"
references:
- uid: "int"
spec.java:
- uid: "int"
name: "int"
fullName: "int"
- uid: "boolean"
spec.java:
- uid: "boolean"
name: "boolean"
fullName: "boolean"
- uid: "T"
spec.java:
- uid: "T"
name: "T"
fullName: "T"
+6
View File
@@ -0,0 +1,6 @@
### YamlMime:TableOfContent
- uid: "org.apollo.game.plugin.action"
name: "Actions"
items:
- uid: "org.apollo.game.plugin.kotlin.message.action.obj.ObjectAction"
name: "ObjectAction"
+2
View File
@@ -0,0 +1,2 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
+5 -1
View File
@@ -1,6 +1,10 @@
- name: Guide
href: guide/
- name: Api Documentation
- name: Core API Documentation
href: api/
homepage: api/index.md
- name: Plugin API Documentation
href: plugin-api/
homepage: plugin-api/index.md
Binary file not shown.