Coder Social home page Coder Social logo

ci_user_guide_src's Introduction

CodeIgniter ユーザーガイド

セットアップ手順

CodeIgniterのユーザガイドは、ドキュメントを管理するためにSphinxを使用し、 様々なフォーマットに変換しています。 ページは人間が読める ReStructured Text フォーマットで書かれています。

前提条件

SphinxはPythonが必要です。OSXの場合は既にインストールされています。 試しにターミナルで python を実行してみてください。 上手くいけば、どのバージョンがインストールされているかが表示されます。 2.7+でない場合は、以下のURLから2.7.2をインストールしてください。 http://python.org/download/releases/2.7.2/

インストール

  1. easy_install をインストール
  2. easy_install "sphinx==1.2.3"
  3. easy_install sphinxcontrib-phpdomain
  4. CI Lexer をインストールして、コードサンプルで PHP、HTML、CSS、Javascript がシンタックスハイライトされるようにする (cilexer/README を参照)
  5. cd user_guide_src
  6. make html

ドキュメントの編集と作成

すべてのソースファイルは source/ の下にあり、 ここでドキュメントを追加修正します。 コードの変更と同様に、フィーチャーブランチで作業を行い、 develop ブランチにプルリクエストを送ることをお勧めします。

HTMLは?

ユーザーがまず参照するであろうHTML版ドキュメントは、 私たちが最も関心を持つものです。 ビルドされたファイルの差分は不要なのでソース管理下に置いていません。 必要に応じてあなたの作業中のファイルをプレビューすることもできます。 HTMLの生成は簡単です。あなたの手元にあるユーザーガイドレポジトリのルートディレクトリで、 インストール手順の最後と同じコマンドを実行してください。

make html

目を見張るようなコンパイルが行われ、レンダリングされたユーザガイドと画像が build/html/ に置かれます。 一度ビルドが成功すれば、 その後は変更されたファイルのみが再ビルドされるので、時間の短縮になります。 もし何らかの理由でビルドファイルを「リセット」したい場合は、 build フォルダの内容を削除して再ビルドしてください。

スタイルガイドライン

SphinxでCodeIgniterのドキュメントを作成する際のスタイルガイドは source/documentation/index.rst を参照してください。

ci_user_guide_src's People

Contributors

a-h-abid avatar aanbar avatar akenroberts avatar alexbilbie avatar avenirer avatar dchill42 avatar druu avatar e-bebe avatar ericlbarnes avatar foxlance avatar ftwbzhao avatar gaker avatar ibotpeaches avatar it-can avatar ivantcholakov avatar jamierumbelow avatar jdfm avatar jim-parry avatar jjaffeux avatar kakysha avatar kazuyukikomabashiri avatar narfbg avatar nekoget avatar obiconbig avatar ostrolucky avatar preems avatar purwandi avatar razican avatar timw4mail avatar vlakoff 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.