Nsindexset

NSHipster.com

NSHipster is a journal of the overlooked bits in Swift, Objective-C and Cocoa. Updated weekly.

This repository hosts the source code that generates and deploys NSHipster.com and its translations. For the articles themselves, see this repository.


Requirements

Running Locally

First, clone the repository by opening Terminal.app and running the following commands:

$ git clone git@github.com:NSHipster/nshipster.com.git
$ cd nshipster.com

Next, clone the articles submodules with the following commands:

$ git submodule update --init --remote --merge

NSHipster is built using Jekyll, a blog-aware, static site generator in Ruby.

Download and update the project dependencies with Bundler using the command:

$ bundle install

To run the site locally, you must specify the configuration file corresponding to the NSHipster website you’d like to build (i.e. NSHipster.com, NSHipster.cn, etc.). You can run the site locally with the following commands:

$ bundle exec jekyll serve --config _config/default.yml,_config/$DOMAIN.yml --trace

Now open the server address in a web browser to see a local copy of the site (by default, Jekyll serves to localhost on port 4000):

$ open http://localhost:4000

Deploying

NSHipster.com is hosted by Netlify. The site is configured with continuous deployment such that any push to the master branch on this repository automatically triggers a build and deploys the site, if successful.

Users with Push access can deploy the site by running the following command:

$ git push origin master

You can monitor the status of a deploy in real-time on this dashboard.

Contact

Follow NSHipster on Twitter (@NSHipster)

License

All code is published under the MIT License.

All content is released under the Creative Commons BY-NC License.

NSHipster® and the NSHipster Logo are registered trademarks of Read Evaluate Press, LLC.

作者 君赏
君赏

笔名君赏,起源于朋友送我的一首诗。

颜过容妆缘君在,

影本无痕已成双。

舞魅天下为君赏,

蝶恋飞花凤求凰。

真名张行,出生在河南南阳社旗县。郑州职业技术学院上完大学,从2012年末从事 iOS开发到至今。

不爱编程,但是又喜欢自动化的功能。