Skip to content

Documentation, API reference, and code snippets for NativeScript

License

Notifications You must be signed in to change notification settings

georgeedwards/docs

 
 

Repository files navigation

PR Update

Build Status

Technologies used

Core

The site is served with expressjs and nodeJS. This allows seperation of the APIs, static docs directory and Dynamic Angular 2 part of the site.

Docs

This is a nodeJS based static docs site, built with Hexo. For a run through on the rationale behind this project, please read this. After cloning this repo, please follow the steps below to test locally. The site should pull the docs subdirectory and then render all the docs on each version production branch. e.g. to release the docs, you should merge the master branch with the latest branch, then when releasing a new version, those docs should be set historically by creating a new branch, e.g. 2.2 and then continuing all new doc additions for 2.3 on the latest branch. The Hexo deployment should be a direct replacement for Jekyll, rendering the same source directly, this is currently a work in progress (see the repo's issues on GitHub).

Tutorial

This is based on Angular2, and is linked to a new tutorial repo. This means that whilst following through the tutorial, at the end of each chapter you can download a zip of the project at that point. You can also see git diffs for each code step.

Plugins

There is an API and Angular2 component for this. A public API and online form allows you to register a new plugin. The server then polls npmjs (and then daily) to update the number of monthly downloads, the latest version number etc. Authentication is provided by Auth0 and allows users to log in with their GitHub accounts. The plugins are kept in a managed MongoDB instance provided free by mLab. Users can then search all plugins, a function which is provided by an ElasticSearch instance, currently hosted by Searchly.

Running locally

Submodules

After cloning, or updating the repo, it makes sense to run

git submodule update --init

Starting hexo

Ensure you've run npm install. Then simply npm start.

Original README.md

NativeScript Documentation

Welcome to the NativeScript documentation content repository. This repository contains the content that lives at http://docs.nativescript.org, and is generated by Jekyll.

Multiple configurations

We have two Jekyll builds for the documentation that generate similar output: nativescript and angular. The former builds the vanilla NativeScript docs, while the latter discusses Angular2-specific topics. Most of the content is shared between the two, and several options are available to add environment-specific content:

  1. Pages that appear in certain environment only. Adding an environment: angular to a page's front matter will mark that page as being available only in that environment. Other environment builds will exclude it. Pages not marked with environment will be shared across all environments.

  2. Display different content on shared pages. This is possible via our environment-related block tags, named angular and nativescript respectively:

    {% nativescript %}Dependency properties...{% endnativescript %}
    
    {% angular %}Change detection...{% endangular %}[
    

Contributing

The NativeScript documentation is completely open source and we love contributions. Whether you want to fix a typo, or write an entire article, the NativeScript documentation is a great way to get started contributing to an open source project.

Don’t know where to start? Check out the list of issues with the “up-for-grabs” label. New to git or GitHub? Join our community Slack chat and we’ll be happy to help get you up and running.

Contributors

The following is a list of all the people that have contributed to the NativeScript documentation. Thanks for your contributions!

tjvantollErjanGavaljins-botvakrilovN3llenchev

tsonevnnsndeckerikruthikoevskahamorphisvchimev

hdeshevatanasovgPlamen5kovteobugslayerjasssonpetivanbuhov

tzraikovMitko-KerezovboevskiNickIlievvalentinstoychevrosen-vladimirov

tailsugetsetbrodmccuskeysipacateLampeijbristowe

burkehollandPanayotCankovhshristovfritzvdjlooperTsvetanMilanov

toddanglinEvanWielandAntonDobrevbradmartinejsuncyalexziskind1

FrancoisCamusgabesumnern3wctrevordowdlenemephxslavchev

Pip3r4oSamVerschuerensimmsteine2l3nalejonextVladimirAmiorkov

williamhopeterennissaiberzsvalchinovjoshgking

About

Documentation, API reference, and code snippets for NativeScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 61.1%
  • HTML 33.0%
  • TypeScript 4.2%
  • JavaScript 1.7%