Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate automated documentation generation #88

Open
bijington opened this issue Dec 28, 2020 · 1 comment
Open

Investigate automated documentation generation #88

bijington opened this issue Dec 28, 2020 · 1 comment
Assignees
Projects

Comments

@bijington
Copy link
Owner

The wiki approach has a nice clean design however it is painful to finish let alone keep up to date. I quite like the idea of adding in verbose descriptions to functions that would then allow something like docfx to generate something useable from.

e.g.

internal sealed class AddDaysFunction : FunctionBase
{
    /// <summary>
    /// Returns the supplied date/time with the specified number of days added.
    /// </summary>
    /// <example>
    /// This sample shows how to add 2 days to #today#.
    /// <code>
    /// AddDays(#today#, 2)
    /// </code>
    /// </example>
    public override object Evaluate(IExpression[] parameters, Context context)
    {
        ...
    }
}

NOTE this does not have to rely on using docfx but some level of auto generation would be nice to reduce maintenance effort.

Also note that the above would need a mechanism to discover the actual parameters required and not parameters and context.

@graniero
Copy link

Love it!

Using the triple-slash documentation comments would make the documentation immediately available in Visual Studio's IntelliSense, and you'd have a whole range of auto-generation tools to choose from, so you could find something that nicely fits your current workflow or pipeline.

It also opens up some nice future possibilities: if you do move towards more of a 'function bundle' approach for mix-and-match extensibility, you would be well set up to bring community-contributed functions or bundles into your 'official' ecosystem and have their documentation automatically mesh into the primary documentation.

@bijington bijington added this to the Next release milestone Jan 11, 2021
@bijington bijington removed this from the Next release milestone Feb 2, 2021
@bijington bijington self-assigned this May 6, 2021
@bijington bijington added this to In progress in v2.5.0 Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v2.5.0
In progress
Development

No branches or pull requests

2 participants