Code Monkey home page Code Monkey logo

docusaurus-plugin-structurizr's People

Contributors

github-actions[bot] avatar renovate[bot] avatar timkolberger avatar turbobot-temp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

docusaurus-plugin-structurizr's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/composite-actions/install/action.yml
  • pnpm/action-setup v3.0.0
  • actions/setup-node v4
.github/workflows/docs.yml
  • actions/checkout v4
  • actions/configure-pages v5
  • actions/upload-pages-artifact v3
  • actions/deploy-pages v4
.github/workflows/pr.yaml
  • actions/checkout v4
  • davelosert/vitest-coverage-report-action v2
.github/workflows/release.yml
  • actions/checkout v4
  • changesets/action v1
npm
apps/docs/package.json
  • @docusaurus/core 3.3.2
  • @docusaurus/plugin-client-redirects 3.3.2
  • @docusaurus/preset-classic 3.3.2
  • @docusaurus/theme-mermaid 3.3.2
  • @easyops-cn/docusaurus-search-local 0.40.1
  • @mdx-js/react ^3.0.0
  • clsx ^2.0.0
  • prism-react-renderer ^2.3.0
  • react ^18.0.0
  • react-dom ^18.0.0
  • @docusaurus/module-type-aliases 3.3.2
  • @docusaurus/theme-classic 3.3.2
  • @docusaurus/tsconfig 3.3.2
  • @docusaurus/types 3.3.2
  • @types/node 20.12.12
  • raw-loader 4.0.2
  • node >=18.0
package.json
  • @changesets/changelog-github 0.5.0
  • @changesets/cli 2.27.2
  • @trivago/prettier-plugin-sort-imports 4.3.0
  • husky 9.0.11
  • lint-staged 15.2.2
  • prettier 3.2.5
  • turbo 1.13.3
  • eslint 8.57.0
  • concurrently 8.2.2
  • node >=18
  • pnpm 9.1.1
packages/docusaurus-plugin-structurizr/package.json
  • @docusaurus/types 3.3.2
  • @docusaurus/utils-validation 3.3.2
  • @types/node 20.12.12
  • @vitest/coverage-v8 1.6.0
  • rimraf 5.0.7
  • typescript 5.4.5
  • vitest 1.6.0
  • @docusaurus/utils-validation >3.0.1
tooling/eslint-config/package.json
  • @typescript-eslint/eslint-plugin 7.9.0
  • @typescript-eslint/parser 7.9.0
  • concurrently 8.2.2
  • eslint-config-prettier 9.1.0
  • eslint-config-turbo 1.13.3
  • eslint-plugin-only-warn 1.1.0
  • typescript 5.4.5
tooling/typescript-config/package.json
  • concurrently 8.2.2
nvm
.nvmrc
  • node 20.x

  • Check this box to trigger a request for Renovate to run again on this repository

Feature: add executor for onpremises/cloud service installation

Description

Currently the plugin only supports to cli version of structurizr. When there is a deployed version of structurizr/onpremises or access to the cloud version this plugin could fetch the converted diagram from their API.

I am not entirely sure that their API supports this though.

# imaginary psuedo code!
POST workspace/$ID
GET workspace/$ID/diagram.{png,svg,mermaid}
DELETE workspace/$ID

OR

POST transform-this-file?format=mermaid

Problem Statement/Justification

The limitations of this plugin, like docker in docker and executing in CI are not straight forward to accomplish, could be mitigated by supporting the API services onpremises and cloud.

Proposed Solution or API

{
  executor: "api",
  apiToken: process.env.STRUCTURIZR_API_TOKEN,
  apiHost: "https://base-url-of-api"
}

Alternatives

No response

Additional Information

Workspace API: https://docs.structurizr.com/onpremises/workspace-api

Generate diagramms in a separate folder

Description

The diagrams are generated and saved at the same path where the structurizr.dsl is saved.
Moving the generated files to a separated folder will support clarity.

Problem Statement/Justification

When you generate several diagrams you will loose clarity of your folder.
Separating the generated files from the files to edit might be a good pattern.

Proposed Solution or API

Using the the output option of structurizr-cli in export function call would be great:

`docker run --rm -v "${docsPath}:/usr/local/structurizr" ${dockerImage} export -workspace "${fileName}"`,

docker run --rm -v "${docsPath}:/usr/local/structurizr" ${dockerImage} export -workspace "${fileName}" -output diagrams

[Optional] the destination folder could become an option of the plugin.

Alternatives

No response

Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.