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

Add HtmlHelp_Source #230

Open
hrntsm opened this issue Mar 29, 2022 · 2 comments
Open

Add HtmlHelp_Source #230

hrntsm opened this issue Mar 29, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@hrntsm
Copy link
Owner

hrntsm commented Mar 29, 2022

HtmlHelp_Source を付ける

https://github.com/mcneel/compute.rhino3d/blob/master/src/hops/HopsComponent.cs#L65

@hrntsm hrntsm self-assigned this Mar 29, 2022
@hrntsm hrntsm added the enhancement New feature or request label Apr 18, 2022
@hrntsm
Copy link
Owner Author

hrntsm commented Apr 22, 2022

入れたリンクに飛ぶ機能ではなく、そのSourceにあるHTMLを使ってGH内で説明を表示する機能で、Docusaurus はreactなのでそのまま表示されなかった。
期待する機能ではなかったのでクローズ

@hrntsm hrntsm closed this as completed Apr 22, 2022
@hrntsm
Copy link
Owner Author

hrntsm commented May 27, 2022

例えば以下のように書けるようなので、リンクを張るだけでも効果があるかも

    protected override string HtmlHelp_Source()
    {
      GH_HtmlFormatter ghHtmlFormatter = new GH_HtmlFormatter((IGH_InstanceDescription) this);
      ghHtmlFormatter.Title = "title";
      ghHtmlFormatter.Description = "description";
      ghHtmlFormatter.ContactURI = "aaa@mail.com";
      ghHtmlFormatter.AddRemark("hoge");
      ghHtmlFormatter.AddRemark("fuga");
      return ghHtmlFormatter.HtmlFormat();
    }

@hrntsm hrntsm reopened this May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant