Skip to content

Commit 9f7170a

Browse files
authored
fix(docs): fix java sdk documentation (#156)
Key changes include: - **Remote Content Integration:** The `docusaurus-plugin-remote-content` is now used to fetch Java SDK examples directly from the `opentdf/java-sdk` repository. This ensures that the documentation always reflects the latest version of the SDK. - **Dynamic Versioning:** The Java SDK version is now managed as a custom field (`javaSdkVersion`) in `docusaurus.config.ts` and dynamically inserted into the documentation. This simplifies future version updates. - **Code Sample Refactoring:** Existing Java code samples have been refactored to use the new remote content, improving maintainability and reducing code duplication. --------- Signed-off-by: Scott Hamrick <2623452+cshamrick@users.noreply.github.com>
1 parent 45e9776 commit 9f7170a

26 files changed

+840
-265
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
code_samples/java/** linguist-generated=true

code_samples/java/create-attribute.mdx

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/create-namespace.mdx

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/create-subject-condition-set.mdx

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/create-subject-mapping.mdx

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/decrypt-collection-example.mdx

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/decrypt-example.mdx

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/encrypt-collection-example.mdx

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code_samples/java/encrypt-example.mdx

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)