You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by co...@apache.org on 2024/10/17 21:52:30 UTC

(tinkerpop) branch TINKERPOP-2085-docfx updated: Change docfx from global to local install

This is an automated email from the ASF dual-hosted git repository.

colegreer pushed a commit to branch TINKERPOP-2085-docfx
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/TINKERPOP-2085-docfx by this push:
     new 43ae49d3c4 Change docfx from global to local install
43ae49d3c4 is described below

commit 43ae49d3c4e951876dd401b49de1e95aaee03ae0
Author: Cole-Greer <Co...@improving.com>
AuthorDate: Thu Oct 17 14:52:12 2024 -0700

    Change docfx from global to local install
---
 gremlin-dotnet/src/.config/dotnet-tools.json | 12 ++++++++++++
 gremlin-dotnet/src/.gitignore                |  2 --
 gremlin-dotnet/src/pom.xml                   |  6 +++---
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/gremlin-dotnet/src/.config/dotnet-tools.json b/gremlin-dotnet/src/.config/dotnet-tools.json
new file mode 100644
index 0000000000..ef30df8c5c
--- /dev/null
+++ b/gremlin-dotnet/src/.config/dotnet-tools.json
@@ -0,0 +1,12 @@
+{
+  "version": 1,
+  "isRoot": true,
+  "tools": {
+    "docfx": {
+      "version": "2.77.0",
+      "commands": [
+        "docfx"
+      ]
+    }
+  }
+}
\ No newline at end of file
diff --git a/gremlin-dotnet/src/.gitignore b/gremlin-dotnet/src/.gitignore
index 9c25936c61..0baf015229 100644
--- a/gremlin-dotnet/src/.gitignore
+++ b/gremlin-dotnet/src/.gitignore
@@ -1,3 +1 @@
-/docfx
-docfx.zip
 /_site
diff --git a/gremlin-dotnet/src/pom.xml b/gremlin-dotnet/src/pom.xml
index 92cd3957b1..ff2d084cb0 100644
--- a/gremlin-dotnet/src/pom.xml
+++ b/gremlin-dotnet/src/pom.xml
@@ -157,10 +157,10 @@ limitations under the License.
                                         <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
                                         <!-- update docfx if necessary -->
                                         <exec executable="dotnet" failonerror="true">
-                                            <arg line="dotnet tool update -g docfx"/>
+                                            <arg line="dotnet tool restore"/>
                                         </exec>
-                                        <exec executable="docfx" failonerror="true">
-                                            <arg line="docfx.json"/>
+                                        <exec executable="dotnet" failonerror="true">
+                                            <arg line="docfx docfx.json"/>
                                         </exec>
                                     </target>
                                 </configuration>