-
Notifications
You must be signed in to change notification settings - Fork 160
Getting Started
To be able to edit or contribute into the Telerik UI for WinForms documentation you should:
- Have a git tool of your choice, so to clone, pull and push changes (e.g., GitBash, GitHub for Windows, SourceTree, etc.);
- Install Ruby 1.9.3 and the Ruby DevKit (make sure the installation instructions for the DevKit are followed properly);
- Install the Bundler gem for Ruby.
Once the above requirements are fulfilled, you can generate a static website from the Telerik UI for WinForms documentation's source code and browse it locally by using the following commands:
Note: Step 1 and 2 are needed only for the first time you run the local documentation. If Jekyll server has stopped—re-run it by using the
Jekyll serve
command.
-
Clone the repository
git clone git@github.com:telerik/winforms-docs.git
; -
Run
bundle install
; -
Edit
_config.yml
file with the desiredhost
andport
properties:Note: This is not mandatory. The default port is 4000 and the server runs on localhost by default. Thus, you do not need to modify the config file and keep it checked out.
Tip: You can Deploy the documentation to your IIS for easier access.
host: "localhost" port: "8080" # The port configuration is optional. If not configured, its default value is 4000. baseurl: "/aspnet-ajax"
-
Modify
_plugins/slug.rb
like below:11: page.url 12: ## page.url.sub('.html', '')
This line of code removes the .html extensions from all links. It serves SEO optimizations in the live documentation. If you deploy the Jekyll site on IIS with a URL Rewriter module installed, you can leave it as it is.
-
Run
bundle exec jekyll serve
-
Open "http://[host]:[port]/devtools/winforms/introduction.html" in your browser
[host]
and[port]
should be additionally configured in the_config.yml
file. See step 3. By default, you would need to open a URL like the following to start browsing:http://localhost:4000/devtools/winforms/introduction.html
The content files are written in Markdown, based on the specification followed for Jekyll. You can read more about it in daringfireball.net/projects/markdown/.
Some elements, like notes, captions, tabbed code blocks, etc., are rendered via custom Jekyll plugins. Exact specification how to use them is available in Markdown Syntax.
Important: Always pull with rebase
git pull --rebase origin master
before you push commits to the remotegit push origin master
.
- Home
- Getting Started
- Deploying Documentation on IIS
- Git and GitHub Workflow
- Handling Redirects
- Markdown Syntax
- Markdown Nesting
- Using Git and Git Bash
- Troubleshooting
- Use VS Diff tool with Git and SourceTree
- [How to deal with the web.config size limit in order to add URL redirects](./How to deal with the web.config size limit in order to add URL redirects)