Coder Social home page Coder Social logo

paladique / try Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet/try

0.0 1.0 0.0 16.01 MB

Try .NET is an interactive documentation generator for .NET Core.

License: MIT License

C# 69.84% TypeScript 0.02% PowerShell 3.74% CSS 18.67% HTML 0.07% JavaScript 0.04% Smalltalk 3.90% Batchfile 0.05% Shell 3.12% CMake 0.54%

try's Introduction

Try .NET dotnet bot in space

|| BasicsContribution GuidelinesExperiences || SetupGetting Started || Samples ||

Try_.NET Enabled

Build Status

Basics

What is Try .NET: Try .NET is an interactive documentation generator for .NET Core.

Please Note: At the moment Try .NET only works with C# documentation.

Contribution Guidelines

As we are still in the early stages of our development, we are unable to take any feature PRs at the moment but, we do intend to do this in the future. Please feel free to file any bugs reports under our issues. And if you have any feature suggestion, please submit them under our issues using the community suggestions label.

Experiences

Use Try .NET to create executable C# snippets for your websites or, interactive markdown files that users can run on their machine.

Websites

Microsoft Docs uses Try .NET to create interactive documentation. Users can run and edit code all in the browser. Try NET_online

Interactive .NET documentation

Try .NET enables .NET developers to create interactive markdown files. To make your markdown files interactive, you will need to .NET Core 3.0 SDK, the dotnet try global tool(coming soon) and Visual Studio / VS Code(or any other editor of your choice). interactive_doc

Setup

Before you get can start creating interactive documentation, you will need to install the following:

dotnet tool install --global dotnet-try --version 1.0.19264.11

Updating to the latest version of the tool is easy just run the command below

dotnet tool update -g dotnet-try

Once you have successfully installed dotnet try global tool, enter the command dotnet try -h you will see a list of commands:

Command Purpose
demo Learn how to create Try .NET content with an interactive demo
verify Verify Markdown files in the target directory and its children.

Getting Started

You can get started using either one of the options below.

Option1: dotnet try demo

  • Create a new folder.
  • cd to your new folder.
  • Run command dotnet try demo

Option 2: Starting from scratch.

  1. Go to the terminal and create a folder called mydoc.
  2. cd to the mydoc folder and create a new console app with the following command
   > dotnet new console -o myApp

This will create a console app with the files myApp.csproj and Program.cs.

  1. Open mydocfolder in Visual Studio Code.

  2. Create a file called doc.md. Inside that file, add some text and a code fence:

# My Interactive Document:

```cs --source-file ./myApp/Program.cs --project ./myApp/myApp.csproj
```
  1. Now, navigate back to the mydoc folder and run the following command:
     > dotnet try

You have created your first C# interactive developer experience. You should now be able to run your console app and see the result in the browser.

Option 3: Explore our samples Branch.

  • Clone this repo(checkout the samples branch git checkout samples)
  • Read our quick setup guide.

try's People

Contributors

akshita31 avatar arozar avatar billwagner avatar brettfo avatar colombod avatar dotnet-bot avatar dvdstelt avatar jonsequitur avatar justinormont avatar keboo avatar kexybiscuit avatar ladynaggaga avatar morganwm avatar richlander avatar weitzhandler avatar zawhtut avatar

Watchers

 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.