GithubHelp home page GithubHelp logo

meteor / docs Goto Github PK

View Code? Open in Web Editor NEW
186.0 18.0 203.0 6.03 MB

The Meteor API documentation.

Home Page: https://docs.meteor.com/

JavaScript 94.78% HTML 3.63% Shell 1.44% Less 0.15%
documentation hacktoberfest meteor meteorjs

docs's Introduction

This repository has been merged into Meteor main repository. You can find it there.

Meteor API Documentation - http://docs.meteor.com

This is a hexo static site used to generate the Meteor API Docs.

Contributing

We'd love your contributions! Please send us Pull Requests or open issues on github. Also, read the contribution guidelines.

If you are making a larger contribution, you may need to run the site locally:

Running locally

Submodules

This repo has two submodules, one the theme, the other full Meteor repository.

We have the Meteor repo to generate the data.js file (see below).

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

git submodule update --init

Generally you should not commit changes to the submodules, unless you know what you are doing.

Generating data.js

To generate the api boxes, the site uses a file data/data.js which is generated from the js docs in the Meteor source code. This will automatically happen whenever you start your local hexo server.

Starting hexo

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

Developing with local meteor source

When developing jsdoc documentation within the meteor code you will need to make some local modifications to get the documentation to work locally for testing.

  1. Modify url in _config.yml so links within localhost:4000 will not jump out to https://docs.meteor.com
- url: http://docs.meteor.com/
+ url: http://localhost:4000/
  1. reconnect the meteor submodule in /code to your local meteor folder.
# REMOVE submodule
# Remove the submodule entry from .git/config
git submodule deinit -f code

# Remove the submodule directory from the superproject's
# .git/modules directory
rm -rf .git/modules/code

# Remove the entry in .gitmodules and remove the submodule directory
# located at path/to/submodule
git rm -f code

# ADD your local meteor submodule
git submodule add /path/to/local/meteor code
  1. Hexo builds if you are just changing md files in sources then hexo will watch for changes and update. If you are making changes in the /code folder then you will need to npm run clean && npm start.

Of course, do not commit any of these changes.

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.