Git Product home page Git Product logo

nunit-docs's Introduction

NUnit Documentation

This repository serves the content that is found at https://docs.nunit.org.

NUnit Documentation Build Process

What is the Docs site? How does it work?

The docs site is a project within the NUnit organization. Read the vision at VISION.md to understand more about how the documentation fits into the overall organization and how it supports the other projects.

How to Build these docs locally

How to Build These Docs Within GitHub Codespaces or a Dev Container

Fancy using GitHub Codespaces for your work on these docs? Or want to work in the environment locally? You can!

  • Open the branch you want to work on in GitHub Codespaces
  • The tooling, VS code extensions, etc. that we use will immediately be available to you.
  • To build from the Codespaces terminal: build (we've taken care of the rest for you)
  • To serve / preview from the Codespaces terminal: serve (we've taken care of the rest for you)
  • To run markdown linting from the Codespaces terminal: lint (we've taken care of the rest for you)
  • To run spellcheck from the Codespaces terminal: spellcheck (we've taken care of the rest for you)
  • To build/test the snippets from the Codespaces terminal: snippets (we've taken care of the rest for you)

We'll be working on follow-ups to make this more user-friendly, but it's now workable.

Linting Locally

  • Install markdownlint-cli2: npm install markdownlint-cli2 -g
  • Open the root of the project (/, not /docs)
  • Run markdownlint-cli2 --config ".github/linters/.markdownlint.yml" "docs/**/*.md"

We'd love your contributions! See The contributing guide for how to get involved.

Building the API docs locally

The NUnit source code is in a separate repository from the docs, so we typically generate this at build time by copying published code into a build-specific folder (/code-output). From there, docfx transforms the xmldoc comments that are alongside the DLLs into HTML files.

Sometimes you may need/want to reproduce this locally. You can take the following steps to do so:

  • Go to the NUnit release you want in the GitHub Releases
  • Download & extract the .zip file of the release contents
  • Copy the contents of one of the release targets, e.g. net6.0, into a code-outputs folder in the root of the repository.
  • Run the docfx command as you normally would.

How the Docs are Built and Deployed

  • We build the docs via the GitHub actions located in ./github/workflows.
  • The workflow uses a container with docfx installed; the container builds the docs.
  • The workflow then uses another container to push the results to the gh-pages branch, using a personal access token that is stored in the repository's settings.
  • GitHub serves the outputted site from the gh-pages branch, and the DNS of docs.nunit.org points there.

nunit-docs's People

Contributors

seankilleen avatar osiristerje avatar mikkelbu avatar dependabot[bot] avatar chrismaddock avatar charliepoole avatar renovate[bot] avatar arhell avatar stevenaw avatar dejanpopovic1 avatar rprouse avatar manfred-brands avatar simoncropp avatar hesitates avatar rendermichael avatar svengeance avatar andrewimcclement avatar maettu-this avatar cptjazz avatar lapeste avatar greybird avatar ashishdawale20 avatar basdijkstra avatar chm-tm avatar coenraads avatar davidkroell avatar dcdeepesh avatar dennisschagt avatar gitclickok avatar geoff-m avatar

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.