Code Monkey home page Code Monkey logo

sfdocs-sfdx-plugin's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar mariaapab avatar raspikabek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mariaapab

sfdocs-sfdx-plugin's Issues

[BUG] Standard objects does not parse the Name of the object

Describe the bug
Parse of Standard objects (Account, Contact) does not display the API name nor Label or Plural Label

To Reproduce
run sfdx sfdocs:generate in a project with a standard object such us Account

Expected behavior
Using elements like Label, Fullname or PluralLabel should return Account or Accounts

Screenshots
image

[FEATURE] Add compatibility to all metadata types and structures

Describe the solution you'd like
Right now the support is only with Custom Objects and easy folder structures like Profiles, Permission Sets, etc.

List all structure types and carefully develop the modules per type, so in the future additional changes or different structures can be added with minor impact and development.

[FEATURE] Build default Metadata Type Templates

Describe the solution you'd like
Definition of default markdown templates per Metadata type for the parser.

Additional context

Sample template for CustomObjects (skeleton subject to changes if implementation changes)

export const customObject = [
  { h1: { type: 'label' } },
  { h3: { type: 'pluralLabel', label: 'Plural Label', separator: ' --> ' } },
  { h3: { type: 'fullName', label: 'Full Name', separator: ' --> ' } },
  { h3: { type: 'visibility', label: 'Visibility' } },
  { hr: '' },
  { p: { type: 'pluralLabel', label: 'Plural Label', separator: ' = ' } },
  {
    p: [
      { type: 'pluralLabel', label: 'Plural Label', separator: ' =>> ' },
      { type: 'fullName', label: 'Full Name', separator: ' =>> ' }
    ]
  },
  { hr: '' },
  { blockquote: { type: 'pluralLabel', label: 'Plural Label', separator: ' = ' } },
  {
    blockquote: [
      { type: 'pluralLabel', label: 'Plural Label', separator: ' =>> ' },
      { type: 'fullName', label: 'Full Name', separator: ' =>> ' }
    ]
  },
  { h2: 'Attributes' },
  {
    ul: [
      { type: 'enableFeeds', label: 'Enable Feeds' },
      { type: 'enableHistory', label: 'Enable History' },
      { type: 'enableActivities', label: 'Enable Activities' }
    ]
  },
  { h2: 'List Views' },
  { ul: [{ type: 'listViews', elements: ['label', 'fullName', 'filterScope', 'columns'], separator: ' | ' }] },
  { h2: 'Fields' },
  { table: { type: 'fields', headers: ['Label', 'Full Name', 'Type', 'Reference To', 'Required'], rows: ['label', 'fullName', 'type', 'referenceTo', 'required'] } }
];

[FEATURE] Link PermSets/Profiles within fields and viceversa

Describe the solution you'd like

To enable the possibility of adding links/mentions to PermissionSets/Profiles referecing an object/field

To include possibly this within the Object, next the fields as additional custom nodes so it can be referenced in the templates easily

[FEATURE] Enable support to custom templates

Is your feature request related to a problem? Please describe.
Let the users customize their our templates so they have the ability to personalize the structure of their own documentation.

Describe the solution you'd like
Via JSON config files let the users the customize the structure of the page the parser will build. Ideally we would love to have partial substitution for easy customization, but initially we will implement a full replacement, later we will implement a partial substitution followed by some kind of unique ids and order?

Describe alternatives you've considered
We could have in the website a playground with a dummy project where the users could build a template and export the configuration

[CI/CD] Implement automatic Releases deployments

To implement github workflows to automatically create releases and publish to NPM

  • On push to master, to create a new release candidate and publish to npm ( rc tag )
  • Manual workflow to tag latest rc as latest

[FEATURE] Implement Handlebars for templates

Is your feature request related to a problem? Please describe.
Use of handlebars npm package to format JSON into Markdown/HTML templates

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
Use mustache alternatively, but seems like Handlerbars is more powerful with the usage of helpers and other logical stuff due to mustache is logic-less

Handlerbars might be heavier than mustache in terms of size

Additional context

https://www.npmjs.com/package/handlebars

https://www.npmjs.com/package/mustache

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.