Giter Site home page Giter Site logo

dotnetgeneratingdocumentation's Introduction

Dotnet Generating Documentation

This sample demonstrates generating scoped documentation of .NET projects.

Getting Started

  1. Build the solution

    dotnet build

    The above should involve restoring nuget packages, which includes the docfx command-line tool.

  2. Build and serve the documentation for Contracts in the solution (you may need to add the docfx.console/{version}/tools directory to your PATH)

    ```sh
    docfx ./docs/contracts/dtos/docfx.json --serve
    ```
    
  3. Feel free to modify files within docs subdirectories. A brief outline of these files, relative to docs/contracts/dtos are:

    • docfx.json: The configuration that the docfx tool uses to construct static documentation from .NET source code. See docfx.json Format for more
    • index.md: The main landing page of the scoped documentation. For the purposes of this sample, the 'scope' chosen is the Contracts project of the DotnetGeneratingDocumentation solution
    • toc.yml: Configuration for the main site navigation
    • overview/toc.yml: Configuration for the 'Overview' directory's navigation
    • api directory: Contains mostly generated (by docfx) files. api/index.md is the landing page for the 'Api Documentation'
    • images: Houses any visual resources referenced in documentation that is to be hosted on the site
    • _site: Once the docfx command has been run as described in the previous step, this generated directory serves as the web root for the documentation site

For further details, see Getting Started with DocFX.

Customising Templates / Styles

  • Following documentation here, you can customise content and appearance of the built documentation site. This sample uses a minimalism theme defined within docs/contracts/dtos/templates. Based on the docfx.json's build.template property, files are merged between the default theme and the custom minimalism theme, with the minimalism theme taking precedence.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.