sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate Docs command (and toolbar icon)

allanbowe opened this issue ยท comments

We need the ability to generate docs for a target in the same way as we do for the sasjs doc command (https://cli.sasjs.io/doc)

Ideally this would somehow include the doxygen dependency, but if that's not possible, then we could at least make the doxy PATH configurable.

Some additional comments following the first iteration:

  1. If the current project is not a SASjs project, we should navigate up the directory tree to see if any higher-level folders contain a SASjs project (identified by a sasjs/sasjsconfig.json file)
  2. If there is no SASjs project then we should initialise sasjs doc in the current directory INCLUDING a sasjs/sasjsconfig.json file
  3. We should switch the default target to the newly created defaultTarget below. The value under jobFolders should be the current directory / project root.

Initial doc projectTarget:

{
  "$schema": "https://raw.githubusercontent.com/sasjs/utils/main/src/types/sasjsconfig-schema.json",
  "jobConfig": {
    "jobFolders": [
      "/path/to project root"
    ]
  },
  "defaultTarget": "sasjsdoc",
  "targets": [
    {
      "name": "sasjsdoc",
      "serverUrl": "",
      "serverType": "SASJS",
      "appLoc": "/Public/app/docs",
    }
  ]
}

๐ŸŽ‰ This issue has been resolved in version 1.26.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€