Giter Club home page Giter Club logo

hugo-eclipsefdn-website-boilerplate's Introduction

hugo-eclipsefdn-website-boilerplate


NOTE

This project was migrated to Eclipse Gitlab on October 12, 2021.


This boilerplate was created to help Eclipse Projects migrate their website to Hugo!

Build Status

Getting started

Clone the project with submodules and start a web server:

git clone --recurse-submodules https://github.com/EclipseFdn/hugo-eclipsefdn-website-boilerplate
cd hugo-eclipsefdn-website-boilerplate
hugo server

Update hugo-solstice-theme

The hugo-solstice-theme was added to this project as a git submodule.

git submodule update --remote

For more information, please see git documentation on submodules.

How to build my project's website with Jenkins?

The preferred static website generator for Eclipse project websites is Hugo.

You should first put your Hugo sources in a dedicated Git repository, either at GitHub if your source code is already hosted at GitHub or at git.eclipse.org. If you don't have such a repository already, feel free to open a request, the Eclipse IT team will create one for you.

Note that each and every Eclipse project automatically gets a Git repository with git.eclipse.org/www.eclipse.org/<project_name> (see this repository index for complete list). This is not where you want to push your Hugo sources. This repository contains the webpages that are automatically and regularly pulled and published on the www.eclipse.org HTTP server. All the content from the master branch will eventually be available at the URL https://www.eclipse.org/<project_name>.

We recommend that our projects start with forking our hugo-eclipsefdn-website-boilerplate project.

Once your Hugo sources are in the proper repository, update the file named Jenkinsfile at the root of the repository with the proper value for PROJECT_NAME and PROJECT_BOT_NAME environment variable. We also expect projects to update the README.md, config.toml and all the files in the content folder.

If you don't have a Jenkins instance already, ask for one. If you need assistance with the process, open a ticket.

The Jenkinsfile example assumes that your project will use main as the default branch for your source code. Projects will need to make changes to the file to use a different branch name.

Contributing

  1. Fork the eclipsefdn/hugo-eclipsefdn-website-boilerplate repository
  2. Clone repository: git clone --recurse-submodules https://github.com/[your_github_username]/hugo-eclipsefdn-website-boilerplate.git
  3. Create your feature branch: git checkout -b my-new-feature
  4. Commit your changes: git commit -m 'Add some feature' -s
  5. Push feature branch: git push origin my-new-feature
  6. Submit a pull request

Declared Project Licenses

This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

SPDX-License-Identifier: EPL-2.0

Related projects

Images, less and JavaScript files for the Eclipse Foundation look and feel.

Hugo theme of the Eclipse Foundation look and feel.

Bugs and feature requests

Have a bug or a feature request? Please search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Author

Christopher Guindon (Eclipse Foundation)

Trademarks

  • Eclipse® is a Trademark of the Eclipse Foundation, Inc.
  • Eclipse Foundation is a Trademark of the Eclipse Foundation, Inc.

Copyright and license

Copyright 2021 the Eclipse Foundation, Inc. and the hugo-eclipsefdn-website-boilerplate authors. Code released under the Eclipse Public License Version 2.0 (EPL-2.0).

hugo-eclipsefdn-website-boilerplate's People

Contributors

chrisguindon avatar

Watchers

 avatar  avatar  avatar

hugo-eclipsefdn-website-boilerplate's Issues

Provide documentation for building a Hugo-based project website

The content of exampleSite in this project is served via github pages:
https://eclipsefdn.github.io/hugo-solstice-theme/

The exampleSite should include documentation and instructions to build a Hugo-based project website.

@waynebeaton created an issue to include the instruction in the handbook. We should synchronize our effort to avoid duplication:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=538665

Here's some inscriptions that I posted on the incubation mailing list which we could use at a starting point.

I recommend using our eclipsefdn-hugo-solstice-theme to get started since it includes all the Eclipse Foundation project website requirements such as our cookie consent banner and our google tag manager ID.

Hugo is very flexible content management system. For example, iot.eclipse.org is now built using our eclipsefdn-hugo-solstice-theme without the usual EF look and feel.

If you are looking for example on how to setup your project, I would recommend taking a look at the following website git repos:
jakarta.ee https://github.com/jakartaee/jakartaee.github.io
iot.eclipse.org https://github.com/EclipseFdn/iot.eclipse.org
Our Hugo projects are using NPM to manage dependencies, such as our theme:
https://www.npmjs.com/package/eclipsefdn-hugo-solstice-theme

You can install the latest version of the theme via the following command:
npm install eclipsefdn-hugo-solstice-theme --save

The source code of our theme includes a website example via the exampleSite folder:
https://github.com/EclipseFdn/hugo-solstice-theme/tree/master/exampleSite

If you chose to install our theme using NPM, you will need to update the themeDir variable in your config.toml file to let Hugo know where to find your theme:

themesDir = "node_modules/"

Hugo version

Chris, I see you use version 0.81.0, however, most local installations do not provide that new version.

I am running 0.68.3 locally and it works fine.

Suggestion to use a Hugo version that is part of most people's distro.

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.