Skip to content

Help removing inherited members and extension methods sections #9645

Answered by BattlefieldDuck
lawsonmcw asked this question in Q&A
Discussion options

You must be logged in to vote

This is my own solution that I want to share.

  1. Create a CSS file in the docs/template/public/main.css directory. Add the following CSS rules to this file:
/* This rule hides the display of inherited types */
.typelist.inheritance {
    display: none;
}

/* This rule hides the display of implemented types */
.typelist.implements {
    display: none;
}

/* This rule hides the display of derived types */
.typelist.derived {
    display: none;
}
  1. Modify the docfx.json File. Update the template section as follows:
"template": [
  "default",
  "modern",
  "template"
],

After these changes, your documentation should reflect the new styling rules. Remember to rebuild your documentation for the …

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lawsonmcw
Comment options

You must be logged in to vote
2 replies
@BattlefieldDuck
Comment options

@BattlefieldDuck
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants