Prepare /documentation for quicksilver Change-Id: Ia38f1acf2f507a4cbfe652a4369d31362809bedd Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
diff --git a/_projectCommon.php b/_projectCommon.php deleted file mode 100644 index a405f19..0000000 --- a/_projectCommon.php +++ /dev/null
@@ -1,12 +0,0 @@ -<?php - - # Set the theme for your project's web pages. - # See the Committer Tools "How Do I" for list of themes - # https://dev.eclipse.org/committers/ - # Optional: defaults to system theme - $theme = "solstice"; - - # Define your project-wide Nav bars here. - # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3) - # these are optional -
diff --git a/content/en_index.php b/content/en_index.php index 79ec9bd..23842e4 100644 --- a/content/en_index.php +++ b/content/en_index.php
@@ -1,17 +1,17 @@ <?php -/******************************************************************************* - * Copyright (c) 2014 Eclipse Foundation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://eclipse.org/legal/epl-v10.html +/** + * Copyright (c) 2014, 2018 Eclipse Foundation and others. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ * * Contributors: - * Christopher Guindon (Eclipse Foundation) - Initial implementation - *******************************************************************************/ -if (basename ( __FILE__ ) == basename ( $_SERVER ['PHP_SELF'] )) { - exit (); -} + * Denis Roy (Eclipse Foundation) - initial API and implementation + * Christopher Guindon (Eclipse Foundation) + * + * SPDX-License-Identifier: EPL-2.0 + */ ?> <div id="fullcolumn"> @@ -20,43 +20,47 @@ <h2>Current releases</h2> <ul> <li><a href="http://help.eclipse.org/oxygen/index.jsp"><b><img - src="/newsgroups/images/discovery.gif" /> Eclipse Oxygen (4.7) - Documentation</b></a><b> (HTML Help Center) </b></li> + src="/newsgroups/images/discovery.gif" /> Eclipse Oxygen (4.7) + Documentation</b></a><b> (HTML Help Center) </b> + </li> </ul> <h2>Older releases</h2> <ul> <li><a href="http://help.eclipse.org/neon/index.jsp"><b><img - src="/newsgroups/images/discovery.gif" /> Eclipse Neon (4.6) - Documentation</b></a><b> (HTML Help Center) </b></li> + src="/newsgroups/images/discovery.gif" /> Eclipse Neon (4.6) + Documentation</b></a><b> (HTML Help Center) </b> + </li> <li><a href="http://help.eclipse.org/mars/index.jsp"><b><img - src="/newsgroups/images/discovery.gif" /> Eclipse Mars (4.5) - Documentation</b></a><b> (HTML Help Center) </b></li> + src="/newsgroups/images/discovery.gif" /> Eclipse Mars (4.5) + Documentation</b></a><b> (HTML Help Center) </b> + </li> <li><a href="http://help.eclipse.org/luna/index.jsp"><b><img - src="/newsgroups/images/discovery.gif" /> Eclipse Luna (4.4) - Documentation</b></a><b> (HTML Help Center) </b></li> + src="/newsgroups/images/discovery.gif" /> Eclipse Luna (4.4) + Documentation</b></a><b> (HTML Help Center) </b> + </li> <li><a href="http://help.eclipse.org/kepler/index.jsp"><b><img - src="/newsgroups/images/discovery.gif" /> Eclipse Kepler (4.3) - Documentation</b></a><b> (HTML Help Center) </b></li> + src="/newsgroups/images/discovery.gif" /> Eclipse Kepler (4.3) + Documentation</b></a><b> (HTML Help Center) </b> + </li> </ul> <div class="homeitem3col"> <h3>Eclipse 3.1 Documentation</h3> <ul> <li><a href="http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/org.eclipse.platform.doc.user.3.1.pdf.zip"><img - src="/images/zip.png" /> Workbench User Guide</a></li> + src="/images/zip.png" /> Workbench User Guide</a></li> <li><a href="http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/org.eclipse.jdt.doc.user.3.1.pdf.zip"><img - src="/images/zip.png" /> Java Development User Guide</a></li> + src="/images/zip.png" /> Java Development User Guide</a></li> <li><a href="http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/org.eclipse.pde.doc.user.3.1.pdf.zip"><img - src="/images/zip.png" /> PDE Guide</a></li> + src="/images/zip.png" /> PDE Guide</a></li> <li><a href="http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/org.eclipse.platform.doc.isv.3.1.pdf.zip"><img - src="/images/zip.png" /> Platform Plug-in Developer Guide</a></li> + src="/images/zip.png" /> Platform Plug-in Developer Guide</a></li> <li><a href="http://archive.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/org.eclipse.jdt.doc.isv.3.1.pdf.zip"><img - src="/images/zip.png" /> JDT Plug-in Developer Guide</a> - + src="/images/zip.png" /> JDT Plug-in Developer Guide</a> </ul> </div> </div> @@ -65,7 +69,8 @@ <h6>Related links</h6> <ul> <li><a href="http://www.eclipse.org/home/newcomers.php">New to - Eclipse? Start here.</a></li> + Eclipse? Start here.</a> + </li> <li><a href="/articles/">Eclipse articles</a></li> <li><a href="/forums/">Forums</a></li> <li><a href="/resources/">Resources</a></li>
diff --git a/html/index.html b/html/index.html deleted file mode 100644 index 4055ee7..0000000 --- a/html/index.html +++ /dev/null
@@ -1,8 +0,0 @@ -<html> - <head> - <meta http-equiv="refresh" content="0; url=http://help.eclipse.org/help31/index.jsp" /> - </head> - <body> - This document has moved <a href="http://help.eclipse.org/help31/index.jsp">here.</a> You will be taken there shortly. - </body> -</html>
diff --git a/index.php b/index.php index 39d1ed3..c75b789 100644 --- a/index.php +++ b/index.php
@@ -1,34 +1,31 @@ <?php -/******************************************************************************* - * Copyright (c) 2006-2014 Eclipse Foundation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://eclipse.org/legal/epl-v10.html +/** + * Copyright (c) 2006-2014, 2018 Eclipse Foundation and others. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ * * Contributors: - * Denis Roy (Eclipse Foundation) - Initial implementation - * Christopher Guindon (Eclipse Foundation) - *******************************************************************************/ + * Denis Roy (Eclipse Foundation) - initial API and implementation + * Christopher Guindon (Eclipse Foundation) + * + * SPDX-License-Identifier: EPL-2.0 + */ - require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); - require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); - require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); +require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); +$App = new App(); +$Theme = $App->getThemeClass(); - $App = new App(); - $Nav = new Nav(); - $Menu = new Menu(); +$pageTitle = "Eclipse documentation"; +$Theme->setPageTitle($pageTitle); +$Theme->setPageKeywords("Eclipse, documentation, help, api, programmer, javadoc, sdk, developer, network, code"); +$Theme->setPageAuthor("Denis Roy"); - include($App->getProjectCommon()); +// Place your html content in a file called content/en_pagename.php +ob_start(); +include("content/en_" . $App->getScriptName()); +$html = ob_get_clean(); - $pageTitle = "Eclipse documentation"; - $pageKeywords = "Eclipse, documentation, help, api, programmer, javadoc, sdk, developer, network, code"; - $pageAuthor = "Denis Roy"; - - ob_start(); - include("content/en_" . $App->getScriptName()); - $html = ob_get_clean(); - - # Generate the web page - $App->generatePage($theme, $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html); -?> \ No newline at end of file +$Theme->setHtml($html); +$Theme->generatePage(); \ No newline at end of file
diff --git a/main.html b/main.html deleted file mode 100644 index 01a2147..0000000 --- a/main.html +++ /dev/null
@@ -1,8 +0,0 @@ -<html> - <head> - <meta http-equiv="refresh" content="0; url=./" /> - </head> - <body> - <a href="./">This page has moved. Please update your links and bookmarks.</a> - </body> -</html> \ No newline at end of file