docfx icon indicating copy to clipboard operation
docfx copied to clipboard

New VSCode extension

Open tintoy opened this issue 9 years ago • 7 comments

Hi.

To scratch my own itch, I built an extension for VS Code to provide pick-lists of available topic UIDs for insertion while authoring Markdown content. I am working towards making it available on the VS Marketplace (it's free in case that wasn't obvious), but I wanted to first check with you guys that I'm not stepping on anybody's toes by doing so :-)

I'm open to making changes if required, or am happy to contribute my work if you guys are already working on your own extension, BTW.

tintoy avatar Aug 04 '17 23:08 tintoy

@tintoy we have DocFXPreview vs code extension to preview docfx, and we have plan to remove preview in the title of the extension, to make it as docfx extension. Therefore, we suggest to contribute your cool functionality on the extension code base https://github.com/dotnet/docfx/tree/dev/tools/VscPreviewExtension. 😄

hellosnow avatar Aug 06 '17 13:08 hellosnow

@tintoy I just went through the issues, for the todo item https://github.com/tintoy/docfx-assistant/issues/4, I think @hechaochao is delivering the xref service and extension, which may help to resolve the xref.

hellosnow avatar Aug 06 '17 13:08 hellosnow

Thanks! That'll be pretty useful I think.

The extension needs a little refactoring before I contribute it (will need to move the DocFX-specific stuff out into a separate package that doesn't depend on VSCode) so I will track that in tintoy/docfx-assistant#6 and keep you posted on the progress :)

If you have any comments on extension design or other implementation details, feel free to chime in on that issue so we can discuss.

tintoy avatar Aug 07 '17 01:08 tintoy

Opened 2 issues to track the followup plan. https://github.com/dotnet/docfx/issues/1932 https://github.com/dotnet/docfx/issues/1933

vicancy avatar Aug 07 '17 03:08 vicancy

FYI, I'm building an NPM package for parsing a DocFX project:

import { DocFXProject, TopicMetadata, readContentMetadata } from 'docfx-project';

const project: DocFXProject = DocFXProject.load(projectFile);

// Respects include / exclude.
const contentFiles: string[] = await project.getContentFiles('.md', '.yml');

const contentMetadata: TopicMetadata[] = [];
for (const contentFile of contentFiles) {
    const fileMetadata: TopicMetadata[] = await readContentMetadata(contentFile);
    contentMetadata.push(...fileMetadata);
}

Most of this already exists as components in my extension but figured it was reusable enough to be useful.

tintoy avatar Aug 07 '17 07:08 tintoy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Mar 06 '19 06:03 stale[bot]

Closing this issue after a prolonged period of inactivity. If you still think this issue is relevant, please feel free to ping a maintainer or leave a comment.

stale[bot] avatar Mar 13 '19 07:03 stale[bot]