From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/edoc/priv/Makefile | 54 ++++++++++++++++ lib/edoc/priv/edoc.dtd | 139 ++++++++++++++++++++++++++++++++++++++++ lib/edoc/priv/edoc_generate.src | 76 ++++++++++++++++++++++ lib/edoc/priv/erlang.png | Bin 0 -> 2109 bytes lib/edoc/priv/stylesheet.css | 55 ++++++++++++++++ 5 files changed, 324 insertions(+) create mode 100644 lib/edoc/priv/Makefile create mode 100644 lib/edoc/priv/edoc.dtd create mode 100644 lib/edoc/priv/edoc_generate.src create mode 100644 lib/edoc/priv/erlang.png create mode 100644 lib/edoc/priv/stylesheet.css (limited to 'lib/edoc/priv') diff --git a/lib/edoc/priv/Makefile b/lib/edoc/priv/Makefile new file mode 100644 index 0000000000..13225e6d1a --- /dev/null +++ b/lib/edoc/priv/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2004, Ericsson Telecommunications +# Author: Richard Carlsson, Bertil Karlsson +# +include $(ERL_TOP)/make/target.mk +include $(ERL_TOP)/make/$(TARGET)/otp.mk + +# ---------------------------------------------------- +# Application version +# ---------------------------------------------------- +include ../vsn.mk +include ../../xmerl/vsn.mk +include ../../syntax_tools/vsn.mk + + +# ---------------------------------------------------- +# Release directory specification +# ---------------------------------------------------- +RELSYSDIR = $(RELEASE_PATH)/lib/edoc-$(EDOC_VSN) + + +# +# Common Macros +# + +GEN_SCRIPT_SRC = edoc_generate.src +GEN_SCRIPT = edoc_generate +PRIV_FILES = stylesheet.css erlang.png edoc.dtd + +debug opt: + sed -e "s/%EDOC_VSN%/$(EDOC_VSN)/g" \ + -e "s/%XMERL_VSN%/$(XMERL_VSN)/g" \ + -e "s/%SYNTAX_TOOLS_VSN%/$(SYNTAX_TOOLS_VSN)/g" \ + $(GEN_SCRIPT_SRC) > $(GEN_SCRIPT) + +clean: + rm -f $(GEN_SCRIPT) + rm -f core *~ + +docs: + +# ---------------------------------------------------- +# Release Target +# ---------------------------------------------------- +include $(ERL_TOP)/make/otp_release_targets.mk + +release_spec: opt + $(INSTALL_DIR) $(RELSYSDIR)/priv + $(INSTALL_DATA) $(PRIV_FILES) $(RELSYSDIR)/priv + $(INSTALL_SCRIPT) $(GEN_SCRIPT) $(RELSYSDIR)/priv + + +release_docs_spec: + diff --git a/lib/edoc/priv/edoc.dtd b/lib/edoc/priv/edoc.dtd new file mode 100644 index 0000000000..6a332cf22f --- /dev/null +++ b/lib/edoc/priv/edoc.dtd @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/edoc/priv/edoc_generate.src b/lib/edoc/priv/edoc_generate.src new file mode 100644 index 0000000000..e87fdbc902 --- /dev/null +++ b/lib/edoc/priv/edoc_generate.src @@ -0,0 +1,76 @@ +#!/bin/sh +# ``The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved via the world wide web at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# The Initial Developer of the Original Code is Ericsson Utvecklings AB. +# Portions created by Ericsson are Copyright 1999-2000, Ericsson +# Utvecklings AB. All Rights Reserved.'' +# +# $Id$ +# +# + +#EDOC_DIR=/clearcase/otp/internal_tools/edoc +EDOC_DIR=/home/otp/sgml/edoc-%EDOC_VSN% +SYNTAX_TOOLS_DIR=/home/otp/sgml/syntax_tools-%SYNTAX_TOOLS_VSN% +XMERL_DIR=/home/otp/sgml/xmerl-%XMERL_VSN% + +FILE= +APP= +TITLE= +VSN= + +while [ $# -gt 0 ]; do + case $1 in + -file) + FILE=$2; + shift; + shift;; + -app) + APP=$2; + shift; + shift;; + -title) + TITLE=$2; + shift; + shift;; + -vsn) + VSN=$2; + shift; + shift;; + esac +done + +if [ -n "$FILE" ] ; then + EDOC_ARGS="[{layout,otpsgml_layout},{dir,\".\"},{file_suffix,\".sgml\"},{preprocess,true},{includes,[\"$XMERL_DIR/include\"]}]" + erl -boot start_clean -noshell \ + -pa $EDOC_DIR/ebin \ + -pa $SYNTAX_TOOLS_DIR/ebin \ + -pa $XMERL_DIR/ebin \ + -run edoc_run file $FILE $EDOC_ARGS \ + -s erlang halt +elif [ -n "$APP" -a -n "$TITLE" ] ; then + erl -boot start_clean -noshell \ + -pa $EDOC_DIR/ebin \ + -pa $SYNTAX_TOOLS_DIR/ebin \ + -pa $XMERL_DIR/ebin \ + -run edoc_run application $APP "\".\"" "[{title,$TITLE}]" \ + -s erlang halt +elif [ -n "$APP" -a -n "$VSN" ] ; then + erl -boot start_clean -noshell \ + -pa $EDOC_DIR/ebin \ + -pa $SYNTAX_TOOLS_DIR/ebin \ + -pa $XMERL_DIR/ebin \ + -run edoc_run application $APP "\".\"" "[{def,{vsn,\"$VSN\"}}]" \ + -s erlang halt +else + echo "Usage: docb_edoc [-file Filename] | [-app Appname [-title Title |-vsn Vsn]]" +fi diff --git a/lib/edoc/priv/erlang.png b/lib/edoc/priv/erlang.png new file mode 100644 index 0000000000..987a618e24 Binary files /dev/null and b/lib/edoc/priv/erlang.png differ diff --git a/lib/edoc/priv/stylesheet.css b/lib/edoc/priv/stylesheet.css new file mode 100644 index 0000000000..e426a90483 --- /dev/null +++ b/lib/edoc/priv/stylesheet.css @@ -0,0 +1,55 @@ +/* standard EDoc style sheet */ +body { + font-family: Verdana, Arial, Helvetica, sans-serif; + margin-left: .25in; + margin-right: .2in; + margin-top: 0.2in; + margin-bottom: 0.2in; + color: #000000; + background-color: #ffffff; +} +h1,h2 { + margin-left: -0.2in; +} +div.navbar { + background-color: #add8e6; + padding: 0.2em; +} +h2.indextitle { + padding: 0.4em; + background-color: #add8e6; +} +h3.function,h3.typedecl { + background-color: #add8e6; + padding-left: 1em; +} +div.spec { + margin-left: 2em; + background-color: #eeeeee; +} +a.module,a.package { + text-decoration:none +} +a.module:hover,a.package:hover { + background-color: #eeeeee; +} +ul.definitions { + list-style-type: none; +} +ul.index { + list-style-type: none; + background-color: #eeeeee; +} + +/* + * Minor style tweaks + */ +ul { + list-style-type: square; +} +table { + border-collapse: collapse; +} +td { + padding: 3 +} -- cgit v1.2.3