Coder Social home page Coder Social logo

browse's Introduction

browse Build Status

改造した点

  • すべての directory に index.html を吐くようにしました
  • ファイルの行数を index.html に表示するようにしました
  • sub directory 一覧をindex.htmlに表示するようにしました
  • (gh-pagesに載せるとき微妙に不便だったので) headerにちょっと付け足して、htmlのキャッシュを無効にしました
  • 基本的にindex.htmlのaタグに、 target="_brank" を加えて、新しいタブで開くようにしました。

注意点など

  • Pathの区切り文字の処理の関係で、windowsだと正常に動かない可能性大
  • sbtのデフォルトのフォルダ構成で使うことを前提としてソースコードのディレクトリなどを検索してしまってる部分があるので、色々もうあれ

使い方

github page に maven リポジトリがあってそこに置いてあります。 なので、例えばsbtならば以下をbuild.sbtに書けば使えるはずです

resolvers += "xuwei-k repo" at "http://xuwei-k.github.io/mvn"

それ以外は全くオリジナルと同じですが、例えば以下のように設定します

addCompilerPlugin("org.scala-tools.sxr" % "sxr_2.9.1" % "0.2.8-SNAPSHOT" )

scalacOptions <+= scalaSource in Compile map { "-P:sxr:base-directory:" + _.getAbsolutePath }

Sample

自分が改造したversionのsxrで作成した scala 自体のlibrary や compiler の sxr を勝手にgh-pagesに上げちゃってるので参考までに(´・ω・)っ

http://xuwei-k.github.com/scala-library-sxr/scala-library-2.9.1/

http://xuwei-k.github.com/scala-compiler-sxr/scala-compiler-2.9.1/

http://xuwei-k.github.com/scala-library-sxr/scala-library-2.10.0-M1/

TODO

  • ファイルの行番号表示とかやりたい
  • テストないェ・・・
  • 検索できるようにするとか?

browse's People

Contributors

harrah avatar jrudolph avatar olim7t avatar xuwei-k avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

olegych

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.