+Didier "Ptitjes" <ptitjes at free dot fr>
Nicolas Joseph <nicolas.joseph@valaide.org>
Stefan Nuxoll <stefan@nuxoll.eu.org>
Yu Feng <rainwoodman@gmail.com>
src/doclets/Makefile
src/doclets/htmlhelpers/Makefile
src/doclets/htmlhelpers/deps/Makefile
- src/doclets/htmlhelpers/languages/Makefile
src/doclets/htmlhelpers/doclet/Makefile
src/doclets/htmlhelpers/taglets/Makefile
src/doclets/htm/Makefile
SUBDIRS = \
- languages \
doclet \
taglets \
deps \
+++ /dev/null
-NULL =
-
-
-AM_CFLAGS = -g \
- -I ../../../libvaladoc/ \
- $(GLIB_CFLAGS) \
- $(LIBVALA_CFLAGS) \
- $(NULL)
-
-
-BUILT_SOURCES = libapiwriter.vala.stamp
-
-
-apiwriterdir = $(libdir)/valadoc/plugins/htmlhelpers/
-
-
-apiwriter_LTLIBRARIES = \
- libapiwriter.la \
- $(NULL)
-
-
-libapiwriter_la_VALASOURCES = \
- vala.vala \
- $(NULL)
-
-
-libapiwriter_la_SOURCES = \
- libapiwriter.vala.stamp \
- $(libapiwriter_la_VALASOURCES:.vala=.c) \
- $(NULL)
-
-
-libapiwriter.vala.stamp: $(libapiwriter_la_VALASOURCES)
- $(VALAC) -C --vapidir ../../../vapi --pkg valadoc-1.0 --basedir . --save-temps -H apiwriter-1.0.h --library apiwriter-1.0 $^
- touch $@
-
-
-libapiwriter_la_LDFLAGS = -module -avoid-version
-
-
-libapiwriter_la_LIBADD = \
- ../../../libvaladoc/libvaladoc.la \
- $(LIBGVC_LIBS) \
- $(LIBVALA_LIBS) \
- $(GLIB_LIBS) \
- $(NULL)
-
-
-EXTRA_DIST = $(libapiwriter_la_VALASOURCES) libapiwriter.vala.stamp
-
-
-MAINTAINERCLEANFILES = \
- $(libapiwriter_la_SOURCES) \
- apiwriter-1.0.vapi \
- apiwriter-1.0.h \
- $(NULL)
-
libdoclet.vala.stamp: $(libdoclet_VALASOURCES)
- $(VALAC) -C --vapidir ../../htmlhelpers/languages/ --pkg apiwriter-1.0 --vapidir ../../../vapi/ --pkg valadoc-1.0 --basedir . --save-temps $^
+ $(VALAC) -C --vapidir ../../../vapi/ --pkg valadoc-1.0 --basedir . --save-temps $^
touch $@
AM_CFLAGS = -g \
-I ../../../libvaladoc/ \
- -I ../../htmlhelpers/languages \
$(GLIB_CFLAGS) \
$(LIBVALA_CFLAGS) \
$(NULL)
libdoclet_la_LIBADD = \
../../../libvaladoc/libvaladoc.la \
- ../../htmlhelpers/languages/libapiwriter.la \
$(GLIB_LIBS) \
$(LIBVALA_LIBS) \
$(NULL)
public class Valadoc.ValdocOrg.Doclet : Valadoc.Doclet {
- private Valadoc.Html.Api.Vala langwriter = new Valadoc.Html.Api.Vala ();
+ private Valadoc.Html.ValaApiWriter langwriter = new Valadoc.Html.ValaApiWriter ();
private Settings settings;
private FileStream types;
private FileStream file;
html/block.vala \
html/htmlwriter.vala \
html/inline.vala \
+ html-apiwriter/apiwriter.vala \
+ html-apiwriter/apiwriter-vala.vala \
$(NULL)
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
public enum Valadoc.ErrorLevel {
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
-using Valadoc.Html;
using Valadoc;
using Gee;
-public class Valadoc.Html.Api.Vala {
- private Attribute csskeyword = new Attribute ("class", "apikeyword");
- private Attribute cssformalparam = new Attribute ("class", "apiformalparameter");
- private Attribute cssparamlist = new Attribute ("class", "apiparameterlist");
- private Attribute cssexclist = new Attribute ("class", "apiexceptionlist");
- private Attribute cssapi = new Attribute ("class", "api");
- private Attribute csstype = new Attribute ("class", "apitype");
- private Attribute cssbasictype = new Attribute ("class", "apibasictype");
- private Attribute csslink = new Attribute ("class", "apilink");
- private Attribute cssoptparamlist = new Attribute ("class", "apioptparameterlist");
- private Attribute cssparentlist = new Attribute ("class", "parentlist");
-
+public class Valadoc.Html.ValaApiWriter : ApiWriter {
private Entry keyword (string str) {
Span span = new Span ();
span.add_attribute (this.csskeyword);
return span;
}
- public Div from_method (Method m) {
+ public override Div from_method (Method m) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_delegate (Delegate del) {
+ public override Div from_delegate (Delegate del) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_signal (Signal sig) {
+ public override Div from_signal (Signal sig) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_field (Field field) {
+ public override Div from_field (Field field) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_constant (Constant c) {
+ public override Div from_constant (Constant c) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_namespace (Namespace ns) {
+ public override Div from_namespace (Namespace ns) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_enum (Enum en) {
+ public override Div from_enum (Enum en) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_errordomain (ErrorDomain err) {
+ public override Div from_errordomain (ErrorDomain err) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_enumvalue (EnumValue env) {
+ public override Div from_enumvalue (EnumValue env) {
Div api = new Div ();
api.add_attribute (cssapi);
api.add_child (new String (env.name));
return api;
}
- public Div from_errorcode (ErrorCode errc) {
+ public override Div from_errorcode (ErrorCode errc) {
Div api = new Div ();
api.add_attribute (cssapi);
api.add_child (new String (errc.name));
return api;
}
- public Div from_struct (Struct stru) {
+ public override Div from_struct (Struct stru) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_class (Class cl) {
+ public override Div from_class (Class cl) {
Div api = new Div ();
api.add_attribute (cssapi);
return api;
}
- public Div from_interface (Interface iface) {
+ public override Div from_interface (Interface iface) {
Div api = new Div ();
api.add_attribute (cssapi);
return span;
}
- public Div from_property (Property prop) {
+ public override Div from_property (Property prop) {
Div api = new Div ();
api.add_attribute (cssapi);
api.add_child (new String("}"));
return api;
}
-
- public Div from_documented_element (DocumentedElement el) {
- if (el is Method) {
- return this.from_method ((Method)el);
- }
- else if (el is Delegate) {
- return this.from_delegate ((Delegate)el);
- }
- else if (el is Signal) {
- return this.from_signal ((Signal)el);
- }
- else if (el is Field) {
- return this.from_field ((Field)el);
- }
- else if (el is Constant) {
- return this.from_constant ((Constant)el);
- }
- else if (el is Namespace) {
- return this.from_namespace ((Namespace)el);
- }
- else if (el is Enum) {
- return this.from_enum ((Enum)el);
- }
- else if (el is ErrorDomain) {
- return this.from_errordomain ((ErrorDomain)el);
- }
- else if (el is EnumValue) {
- return this.from_enumvalue ((EnumValue)el);
- }
- else if (el is ErrorCode) {
- return this.from_errorcode ((ErrorCode)el);
- }
- else if (el is Struct) {
- return this.from_struct ((Struct)el);
- }
- else if (el is Class) {
- return this.from_class ((Class)el);
- }
- else if (el is Interface) {
- return this.from_interface ((Interface)el);
- }
- else {
- return this.from_property ((Property)el);
- }
- }
}
--- /dev/null
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+
+using Valadoc;
+using Gee;
+
+public abstract class Valadoc.Html.ApiWriter {
+ protected Attribute csskeyword = new Attribute ("class", "apikeyword");
+ protected Attribute cssformalparam = new Attribute ("class", "apiformalparameter");
+ protected Attribute cssparamlist = new Attribute ("class", "apiparameterlist");
+ protected Attribute cssexclist = new Attribute ("class", "apiexceptionlist");
+ protected Attribute cssapi = new Attribute ("class", "api");
+ protected Attribute csstype = new Attribute ("class", "apitype");
+ protected Attribute cssbasictype = new Attribute ("class", "apibasictype");
+ protected Attribute csslink = new Attribute ("class", "apilink");
+ protected Attribute cssoptparamlist = new Attribute ("class", "apioptparameterlist");
+ protected Attribute cssparentlist = new Attribute ("class", "parentlist");
+
+ public abstract Div from_method (Method m);
+ public abstract Div from_delegate (Delegate del);
+ public abstract Div from_signal (Signal sig);
+ public abstract Div from_field (Field field);
+ public abstract Div from_constant (Constant c);
+ public abstract Div from_namespace (Namespace ns);
+ public abstract Div from_enum (Enum en);
+ public abstract Div from_errordomain (ErrorDomain err);
+ public abstract Div from_enumvalue (EnumValue env);
+ public abstract Div from_errorcode (ErrorCode errc);
+ public abstract Div from_struct (Struct stru);
+ public abstract Div from_class (Class cl);
+ public abstract Div from_interface (Interface iface);
+ public abstract Div from_property (Property prop);
+
+ public Div from_documented_element (DocumentedElement el) {
+ if (el is Method) {
+ return this.from_method ((Method)el);
+ }
+ else if (el is Delegate) {
+ return this.from_delegate ((Delegate)el);
+ }
+ else if (el is Signal) {
+ return this.from_signal ((Signal)el);
+ }
+ else if (el is Field) {
+ return this.from_field ((Field)el);
+ }
+ else if (el is Constant) {
+ return this.from_constant ((Constant)el);
+ }
+ else if (el is Namespace) {
+ return this.from_namespace ((Namespace)el);
+ }
+ else if (el is Enum) {
+ return this.from_enum ((Enum)el);
+ }
+ else if (el is ErrorDomain) {
+ return this.from_errordomain ((ErrorDomain)el);
+ }
+ else if (el is EnumValue) {
+ return this.from_enumvalue ((EnumValue)el);
+ }
+ else if (el is ErrorCode) {
+ return this.from_errorcode ((ErrorCode)el);
+ }
+ else if (el is Struct) {
+ return this.from_struct ((Struct)el);
+ }
+ else if (el is Class) {
+ return this.from_class ((Class)el);
+ }
+ else if (el is Interface) {
+ return this.from_interface ((Interface)el);
+ }
+ else {
+ return this.from_property ((Property)el);
+ }
+ }
+}
+
+
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
using Gee;
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
using Gee;
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
using Gee;
+/*
+ * Valadoc - a documentation tool for vala.
+ * Copyright (C) 2009 Florian Brosch
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
using Gee;