question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automated documentation system

See original GitHub issue

Is your feature request related to a problem? Please describe. After working with 3 big projects using F7, I made a decision to start to use typescript to keep my sanity. Typescript requires a .d.ts file for intellisense and type checking. The only source I found for this is incomplete (and is hard to do it manually). Angular users also requires .d.ts files, as Angular is best served with TypeScript.

I’m pretty sure that the job of documenting the F7 is preety hard as well.

Describe the solution you’d like If we have some form of formatted or easily parsable documentation, it would be possible to auto generate the documentation website and it would be possible for the community to construct an auto .d.ts generator.

JSDoc (http://usejsdoc.org/) has some interesting tags to make it easy, for instance:

/**
 * @param {string} somebody - Somebody's name.
 */
function sayHello(somebody) {
    alert('Hello ' + somebody);
}

Output example: https://nhnent.github.io/tui.jsdoc-template/latest/FormButton.html

Only that documentation, per-se, would be enough for TypeScript (based on this accepted answer: https://stackoverflow.com/questions/12687779/how-do-you-produce-a-d-ts-typings-definition-file-from-an-existing-javascript)

Describe alternatives you’ve considered Now, my $f7, $f7router are all marked as any (meaning there is no intellisense nor validation - I often have to leave the official documentation opened and search it to find the correct syntax or available options for a prop).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nolimits4webcommented, Sep 14, 2018

TypeScript definitions landed in 3.3.0

0reactions
JCKodelcommented, Sep 5, 2018

AFAIK, you can separate components by modules (with the same name we use on import, in the same folder) ( https://www.typescriptlang.org/docs/handbook/jsx.html)

Perhaps, this could help: https://github.com/mui-org/material-ui/tree/master/packages/material-ui/src/Badge This is a React component set for Material UI. This folder has a Badge component with .d.ts inside.

Not sure if this is what you are looking for (I would personally use Flow, if Visual Studio had a plugin for it or, better yet, Haxe, but, we must row with the flow =)

On Wed, Sep 5, 2018 at 3:32 PM Vladimir Kharlampidi < notifications@github.com> wrote:

Yeah, as I understand those typings and shims are mainly for Vue library and app scope. I’m wondering how can we provide .d.ts files for each components like for

https://github.com/framework7io/framework7/blob/master/packages/vue/components/button.js so when we write something like <f7-button rai...> we have raised IntelliSense autocomplete

It already works for F7-React components, but we can’t figure out .d.ts syntax for Vue components 😃

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/framework7io/framework7/issues/2624#issuecomment-418834423, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXJy1MqgRIm8VlypDehy-0J3z0jCodpks5uYBjRgaJpZM4WUZvq .

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Automate Documentation Workflow Without Spending ...
Document automation refers to automating the creation, processing, and overall management of documents through software. The automation is based ...
Read more >
11 Best Document Automation Software in 2022 | Nanonets Blog
11 Best Document Automation Software in 2022 ; 1. Nanonets [Start your free trial] ; 2. PandaDoc ; 3. Jotform PDF Editor ;...
Read more >
How To Automate Documentation Workflow For Developers
What does automating documentation mean? It means adopting common software development practices. When you automate documentation, you are:.
Read more >
Document automation software: a buyer's guide in 2023 - Juro
Document automation is the process of using software to generate electronic documents, without completing the manual tasks traditionally ...
Read more >
Document automation - Wikipedia
Document automation is the design of systems and workflows that assist in the creation of electronic documents. These include logic-based systems that use ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found