Skip to content
Browse files

'make orgs' to convert .org files to ascii/html

README.org -> README
doc/*.org -> doc/*.html
  • Loading branch information...
1 parent 946966e commit 722f895d7501cad2d4f5870d09f593d2aecd90dc Bryan Fink committed Jan 11, 2010
Showing with 621 additions and 0 deletions.
  1. +8 −0 Makefile
  2. +1 −0 doc/admin.org
  3. +580 −0 doc/doc-style.css
  4. +32 −0 orgbatch.el
View
8 Makefile
@@ -55,6 +55,14 @@ reldocs: docs
@cd client_lib/java && make javadoc && \
cp -R javadoc/* ../../www/java_client_api
+orgs: orgs-doc orgs-README
+
+orgs-doc:
+ @emacs -l orgbatch.el -batch --eval="(riak-export-doc-dir \"doc\" 'html)"
+
+orgs-README:
+ @emacs -l orgbatch.el -batch --eval="(riak-export-doc-file \"README.org\" 'ascii)"
+ @mv README.txt README
dialyzer: compile
@dialyzer -Wno_return -c apps/riak/ebin
View
1 doc/admin.org
@@ -1,4 +1,5 @@
#+TITLE: Riak Administration Guide
+#+STYLE: <link rel="stylesheet" type="text/css" href="doc-style.css" />
* Overview
View
580 doc/doc-style.css
@@ -0,0 +1,580 @@
+body {
+ color: #000000;
+ background-color: #ffffff;
+}
+.org-bold {
+ /* bold */
+ font-weight: bold;
+}
+.org-bold-italic {
+ /* bold-italic */
+ font-weight: bold;
+ font-style: italic;
+}
+.org-border {
+ /* border */
+ background-color: #000000;
+}
+.org-buffer-menu-buffer {
+ /* buffer-menu-buffer */
+ font-weight: bold;
+}
+.org-builtin {
+ /* font-lock-builtin-face */
+ color: #da70d6;
+}
+.org-button {
+ /* button */
+ text-decoration: underline;
+}
+.org-comint-highlight-input {
+ /* comint-highlight-input */
+ font-weight: bold;
+}
+.org-comint-highlight-prompt {
+ /* comint-highlight-prompt */
+ color: #00008b;
+}
+.org-comment {
+ /* font-lock-comment-face */
+ color: #a8a8a8;
+}
+.org-comment-delimiter {
+ /* font-lock-comment-delimiter-face */
+ color: #a8a8a8;
+}
+.org-constant {
+ /* font-lock-constant-face */
+ color: #4682b4;
+}
+.org-cursor {
+ /* cursor */
+ background-color: #000000;
+}
+.org-default {
+ /* default */
+ color: #000000;
+ background-color: #ffffff;
+}
+.org-diff-added {
+}
+.org-diff-changed {
+}
+.org-diff-context {
+ /* diff-context */
+ color: #7f7f7f;
+}
+.org-diff-file-header {
+ /* diff-file-header */
+ background-color: #b3b3b3;
+ font-weight: bold;
+}
+.org-diff-function {
+ /* diff-function */
+ background-color: #d9d9d9;
+}
+.org-diff-header {
+ /* diff-header */
+ background-color: #d9d9d9;
+}
+.org-diff-hunk-header {
+ /* diff-hunk-header */
+ background-color: #d9d9d9;
+}
+.org-diff-index {
+ /* diff-index */
+ background-color: #b3b3b3;
+ font-weight: bold;
+}
+.org-diff-indicator-added {
+}
+.org-diff-indicator-changed {
+}
+.org-diff-indicator-removed {
+}
+.org-diff-nonexistent {
+ /* diff-nonexistent */
+ background-color: #b3b3b3;
+ font-weight: bold;
+}
+.org-diff-removed {
+}
+.org-doc {
+ /* font-lock-doc-face */
+ color: #a0522d;
+}
+.org-escape-glyph {
+ /* escape-glyph */
+ color: #a52a2a;
+}
+.org-file-name-shadow {
+ /* file-name-shadow */
+ color: #7f7f7f;
+}
+.org-fixed-pitch {
+}
+.org-fringe {
+ /* fringe */
+ background-color: #f2f2f2;
+}
+.org-function-name {
+ /* font-lock-function-name-face */
+ color: #0000ff;
+}
+.org-header-line {
+ /* header-line */
+ color: #333333;
+ background-color: #e5e5e5;
+}
+.org-help-argument-name {
+ /* help-argument-name */
+ font-style: italic;
+}
+.org-highlight {
+ /* highlight */
+ background-color: #b4eeb4;
+}
+.org-isearch {
+ /* isearch */
+ color: #b0e2ff;
+ background-color: #cd00cd;
+}
+.org-italic {
+ /* italic */
+ font-style: italic;
+}
+.org-keyword {
+ /* font-lock-keyword-face */
+ color: #a020f0;
+}
+.org-lazy-highlight {
+ /* lazy-highlight */
+ background-color: #afeeee;
+}
+.org-link {
+ /* link */
+ color: #0000ff;
+ text-decoration: underline;
+}
+.org-link-visited {
+ /* link-visited */
+ color: #8b008b;
+ text-decoration: underline;
+}
+.org-makefile-makepp-perl {
+ /* makefile-makepp-perl */
+ background-color: #bfefff;
+}
+.org-makefile-shell {
+}
+.org-makefile-space {
+ /* makefile-space */
+ background-color: #ff69b4;
+}
+.org-makefile-targets {
+ /* makefile-targets */
+ color: #0000ff;
+}
+.org-match {
+ /* match */
+ background-color: #ffff00;
+}
+.org-menu {
+}
+.org-negation-char {
+}
+.org-next-error {
+ /* next-error */
+ background-color: #eedc82;
+}
+.org-nobreak-space {
+ /* nobreak-space */
+ color: #a52a2a;
+ text-decoration: underline;
+}
+.org-org-agenda-clocking {
+ /* org-agenda-clocking */
+ background-color: #ffff00;
+}
+.org-org-agenda-column-dateline {
+ /* org-agenda-column-dateline */
+ background-color: #e5e5e5;
+}
+.org-org-agenda-date {
+ /* org-agenda-date */
+ color: #0000ff;
+}
+.org-org-agenda-date-today {
+ /* org-agenda-date-today */
+ color: #0000ff;
+ font-weight: bold;
+ font-style: italic;
+}
+.org-org-agenda-date-weekend {
+ /* org-agenda-date-weekend */
+ color: #0000ff;
+ font-weight: bold;
+}
+.org-org-agenda-dimmed-todo {
+ /* org-agenda-dimmed-todo-face */
+ color: #7f7f7f;
+}
+.org-org-agenda-done {
+ /* org-agenda-done */
+ color: #228b22;
+}
+.org-org-agenda-restriction-lock {
+ /* org-agenda-restriction-lock */
+ background-color: #ffff00;
+}
+.org-org-agenda-structure {
+ /* org-agenda-structure */
+ color: #0000ff;
+}
+.org-org-archived {
+ /* org-archived */
+ color: #7f7f7f;
+}
+.org-org-block {
+ /* org-block */
+ color: #7f7f7f;
+}
+.org-org-checkbox {
+ /* org-checkbox */
+ font-weight: bold;
+}
+.org-org-checkbox-statistics-done {
+ /* org-checkbox-statistics-done */
+ color: #228b22;
+ font-weight: bold;
+}
+.org-org-checkbox-statistics-todo {
+ /* org-checkbox-statistics-todo */
+ color: #ff0000;
+ font-weight: bold;
+}
+.org-org-clock-overlay {
+ /* org-clock-overlay */
+ background-color: #ffff00;
+}
+.org-org-code {
+ /* org-code */
+ color: #7f7f7f;
+}
+.org-org-column {
+ /* org-column */
+ background-color: #e5e5e5;
+}
+.org-org-column-title {
+ /* org-column-title */
+ background-color: #e5e5e5;
+ font-weight: bold;
+ text-decoration: underline;
+}
+.org-org-date {
+ /* org-date */
+ color: #a020f0;
+ text-decoration: underline;
+}
+.org-org-done {
+ /* org-done */
+ color: #228b22;
+ font-weight: bold;
+}
+.org-org-drawer {
+ /* org-drawer */
+ color: #0000ff;
+}
+.org-org-ellipsis {
+ /* org-ellipsis */
+ color: #b8860b;
+ text-decoration: underline;
+}
+.org-org-footnote {
+ /* org-footnote */
+ color: #a020f0;
+ text-decoration: underline;
+}
+.org-org-formula {
+ /* org-formula */
+ color: #b22222;
+}
+.org-org-headline-done {
+ /* org-headline-done */
+ color: #bc8f8f;
+}
+.org-org-hide {
+ /* org-hide */
+ color: #ffffff;
+}
+.org-org-latex-and-export-specials {
+ /* org-latex-and-export-specials */
+ color: #8b4513;
+}
+.org-org-level-1 {
+ /* org-level-1 */
+ color: #0000ff;
+}
+.org-org-level-2 {
+ /* org-level-2 */
+ color: #b8860b;
+}
+.org-org-level-3 {
+ /* org-level-3 */
+ color: #a020f0;
+}
+.org-org-level-4 {
+ /* org-level-4 */
+ color: #b22222;
+}
+.org-org-level-5 {
+ /* org-level-5 */
+ color: #228b22;
+}
+.org-org-level-6 {
+ /* org-level-6 */
+ color: #5f9ea0;
+}
+.org-org-level-7 {
+ /* org-level-7 */
+ color: #da70d6;
+}
+.org-org-level-8 {
+ /* org-level-8 */
+ color: #bc8f8f;
+}
+.org-org-link {
+ /* org-link */
+ color: #a020f0;
+ text-decoration: underline;
+}
+.org-org-meta-line {
+ /* org-meta-line */
+ color: #a8a8a8;
+}
+.org-org-mode-line-clock {
+ /* org-mode-line-clock */
+ color: #000000;
+ background-color: #bfbfbf;
+}
+.org-org-property-value {
+}
+.org-org-quote {
+ /* org-quote */
+ color: #7f7f7f;
+}
+.org-org-scheduled {
+ /* org-scheduled */
+ color: #006400;
+}
+.org-org-scheduled-previously {
+ /* org-scheduled-previously */
+ color: #b22222;
+}
+.org-org-scheduled-today {
+ /* org-scheduled-today */
+ color: #006400;
+}
+.org-org-sexp-date {
+ /* org-sexp-date */
+ color: #a020f0;
+}
+.org-org-special-keyword {
+ /* org-special-keyword */
+ color: #bc8f8f;
+}
+.org-org-table {
+ /* org-table */
+ color: #0000ff;
+}
+.org-org-tag {
+ /* org-tag */
+ font-weight: bold;
+}
+.org-org-target {
+ /* org-target */
+ text-decoration: underline;
+}
+.org-org-time-grid {
+ /* org-time-grid */
+ color: #b8860b;
+}
+.org-org-todo {
+ /* org-todo */
+ color: #ff0000;
+ font-weight: bold;
+}
+.org-org-upcoming-deadline {
+ /* org-upcoming-deadline */
+ color: #b22222;
+}
+.org-org-verbatim {
+ /* org-verbatim */
+ color: #7f7f7f;
+}
+.org-org-verse {
+ /* org-verse */
+ color: #7f7f7f;
+}
+.org-org-warning {
+ /* org-warning */
+ color: #ff0000;
+ font-weight: bold;
+}
+.org-outline-1 {
+ /* outline-1 */
+ color: #0000ff;
+}
+.org-outline-2 {
+ /* outline-2 */
+ color: #b8860b;
+}
+.org-outline-3 {
+ /* outline-3 */
+ color: #a020f0;
+}
+.org-outline-4 {
+ /* outline-4 */
+ color: #da70d6;
+}
+.org-outline-5 {
+ /* outline-5 */
+ color: #a8a8a8;
+}
+.org-outline-6 {
+ /* outline-6 */
+ color: #4682b4;
+}
+.org-outline-7 {
+ /* outline-7 */
+ color: #228b22;
+}
+.org-outline-8 {
+ /* outline-8 */
+ color: #a0522d;
+}
+.org-preprocessor {
+ /* font-lock-preprocessor-face */
+ color: #da70d6;
+}
+.org-preview {
+ /* preview-face */
+ background-color: #f5f5dc;
+}
+.org-preview-reference {
+}
+.org-query-replace {
+ /* query-replace */
+ color: #b0e2ff;
+ background-color: #cd00cd;
+}
+.org-regexp-grouping-backslash {
+ /* font-lock-regexp-grouping-backslash */
+ font-weight: bold;
+}
+.org-regexp-grouping-construct {
+ /* font-lock-regexp-grouping-construct */
+ font-weight: bold;
+}
+.org-region {
+ /* region */
+ background-color: #eedc82;
+}
+.org-scroll-bar {
+}
+.org-secondary-selection {
+ /* secondary-selection */
+ background-color: #ffff00;
+}
+.org-sgml-namespace {
+ /* sgml-namespace */
+ color: #da70d6;
+}
+.org-sh-escaped-newline {
+ /* sh-escaped-newline */
+ color: #a0522d;
+}
+.org-sh-heredoc {
+ /* sh-heredoc */
+ color: #d2b48c;
+}
+.org-sh-quoted-exec {
+ /* sh-quoted-exec */
+ color: #ff00ff;
+}
+.org-shadow {
+ /* shadow */
+ color: #7f7f7f;
+}
+.org-string {
+ /* font-lock-string-face */
+ color: #a0522d;
+}
+.org-tool-bar {
+ /* tool-bar */
+ color: #000000;
+ background-color: #bfbfbf;
+}
+.org-tooltip {
+ /* tooltip */
+ color: #000000;
+ background-color: #ffffe0;
+}
+.org-trailing-whitespace {
+ /* trailing-whitespace */
+ background-color: #ff0000;
+}
+.org-type {
+ /* font-lock-type-face */
+ color: #228b22;
+}
+.org-underline {
+ /* underline */
+ text-decoration: underline;
+}
+.org-variable-name {
+ /* font-lock-variable-name-face */
+ color: #b8860b;
+}
+.org-variable-pitch {
+}
+.org-vertical-border {
+}
+.org-warning {
+ /* font-lock-warning-face */
+ color: #ff0000;
+ font-weight: bold;
+}
+.org-widget-button {
+ /* widget-button */
+ font-weight: bold;
+}
+.org-widget-button-pressed {
+ /* widget-button-pressed */
+ color: #ff0000;
+}
+.org-widget-documentation {
+ /* widget-documentation */
+ color: #006400;
+}
+.org-widget-field {
+ /* widget-field */
+ background-color: #d9d9d9;
+}
+.org-widget-inactive {
+ /* widget-inactive */
+ color: #7f7f7f;
+}
+.org-widget-single-line-field {
+ /* widget-single-line-field */
+ background-color: #d9d9d9;
+}
+
+a {
+ background-color: inherit;
+ font: inherit;
+ text-decoration: inherit;
+}
+a:hover {
+ text-decoration: underline;
+}
View
32 orgbatch.el
@@ -0,0 +1,32 @@
+;; setup erlang mode
+(let ((tp (shell-command-to-string "erl -noinput -eval \"io:format(\\\"~s\\\", [code:lib_dir(tools)])\" -run init stop")))
+ (setq load-path (cons (concat tp "/emacs")
+ load-path))
+ (require 'erlang-start))
+
+;; Org-mode
+;; specify ORG_PATH if you have org-mode installed somewhere
+;; other than your site-lisp path
+(let ((orgpath (getenv "ORG_PATH")))
+ (if (stringp orgpath)
+ (setq load-path
+ (cons (concat orgpath "/lisp")
+ (cons (concat orgpath "/contrib/lisp")
+ load-path)))))
+(require 'org-install)
+(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
+
+;; allow css to set code highlighting style
+(setq org-export-htmlize-output-type 'css)
+
+;; command-line --eval functions
+(defun riak-export-doc-file (filename format)
+ (find-file filename)
+ (cond ((eq format 'ascii) (org-export-as-ascii 3))
+ ((eq format 'html) (org-export-as-html 3))
+ (message "Unknown export format")))
+
+(defun riak-export-doc-dir (directory format)
+ (mapcar
+ (lambda (filename) (riak-export-doc-file filename format))
+ (file-expand-wildcards (concat directory "/*.org"))))

0 comments on commit 722f895

Please sign in to comment.
Something went wrong with that request. Please try again.