Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.45 KB

test-docs.md

File metadata and controls

26 lines (18 loc) · 1.45 KB

The content of the workshops is embedded as part of the Uno Platform docs using DocFx.

To test the workshop follow these instructions:

  1. Clone the main Uno Platform repo. If this is already cloned, make sure the branch you're running is up-to-date with the upstream master branch.

  2. Open the doc\import_extenal_docs_test.ps1 script in an editor, and modify the workshops element to point to the branch you want to test (if it's commented out, you may need to uncomment it first):

    "workshops" = "master"
  3. Open a PowerShell CLI, navigate to the uno repo's doc folder and call the import_external_docs_test script:

    PS> cd unoplatform/uno/doc
    PS> .\import_external_docs_test
  4. DocFx will run through the docs and will print out warnings and error messages found in the contents. This is a good chance to hunt for any errors in the docs (sometimes there are issues with referenced toc files, so you may need to comment those out to get docfx to build)

  5. The browser will launch the docs site, note the port number.

  6. Switch between browsing mode and viewing mode by including/excluding the _site route and alternating between the md/html extension respectively:

    dotnet-serve in action

    Some mis-designed objects can be ignored, these are applied from the production CSSs.

  7. When done, come back to the CLI and press Ctrl+C to terminate the docs server.