Coder Social home page Coder Social logo

jbcnconf_web's Introduction

JBCNConf Website

Building the website

The site is build with the Jekyll and published with GitHub pages. To run it you need to set up a basic Ruby (up to 2.7.x) environment.

For Linux and MacOS, the recommended way to install Ruby is with RVM. For Windows you can use RubyInstaller or the chocolately package.

Once Ruby is installed, install the required gems with the following command.

bundle install

Generated pages

Converting generated html is ONLY required when updating them.

Some pages use Asciidoctor to generate the HTML. adoc sources can be found under tools directory.

To convert them:

  1. Install Asciidoctor Ruby gem gem install asciidoctor

  2. Render each file with the --no-header-footer option (-s in short) specifying the source and target path.

Here is the list of the current generated files and their commands:

$ asciidoctor tools/diversity.adoc -aidprefix -aidseparator=- -s -o 2022/_includes/diversity/diversity-terms.html
$ asciidoctor tools/mentoring-panel.adoc -aidprefix -aidseparator=- -s -o 2022/_includes/diversity/mentoring-panel.html
$ asciidoctor tools/hackergarten.adoc -aidprefix -aidseparator=- -s -o 2022/_includes/hackergarten/hackergarten-content.html
$ asciidoctor tools/talks-feedback.adoc -aidprefix -aidseparator=- -s -o 2022/_includes/feedback/feedback-talks-table.html
$ asciidoctor tools/workshops-feedback.adoc -aidprefix -aidseparator=- -s -o 2022/_includes/feedback/feedback-workshops-table.html
$ asciidoctor tools/become-sponsor.adoc -aidprefix -aidseparator=- -s -o 2022/_includes/sponsors/become-sponsor.html

Note that a real line break required two line-breaks, single ones are ignored. Files are not converted automatically. If changes in the sources are made, remember converting them and adding the generated html in the commit.

Testing the website

Testing it locally (with Ruby installation)

Just fork the repo, open a shell, place yourself in the root and run

$ bundle exec jekyll serve

of just

$ jekyll serve

This will start a local embedded server on http://localhost:4000. The server will stay up and self-update automatically.

Testing it locally (with Gradle)

If you have Gradle installed somewhere (or even have a project somewhere with the Gradle wrapper) you can test without having anything installed. Just fork the repo, open a shell and run

$ gradle -b jekyll.gradle -i

This will bootstrap everything into a throw-away folder and start up the local server on

http://localhost:4000

The server will stay up and self-update automatically.

Testing it locally (with Docker)

Current Jekyll version used by GitHub Pages (v3.9.2) is not available at DockerHub. Close available Jekyll images are 3.8 and 4.0.0, use at your own risk.

docker run example
JEKYLL_VERSION="3.8" && docker run --rm \
--volume="$PWD:/srv/jekyll:Z" \
--publish 4000:4000 \
-it jekyll/jekyll:$JEKYLL_VERSION \
jekyll serve

Testing on a GitHub cloned repo

You can publish the site in your cloned repo to see the result of your changes.

First, enable GitHub pages in your forked repository and set it to publish to the gh-pages branch.

Publication

Changes are published directly from main branch. Make sure everything is correct before merging into it.

Generating a new Edition

TBD

Remember to update the open graph values located at the _layouts/default.html page and replace the <year>/assets/img/logos/og-image.png image. They are used for the thumbnail generation at every social network.

jbcnconf_web's People

Contributors

abelsromero avatar alexcuesta avatar alexdeveng avatar anna-kurman-ocado avatar anyulled avatar atort avatar ciscox83 avatar danielgonzamu avatar dependabot[bot] avatar freyliis avatar gerardbosch avatar icougil avatar immavalls avatar jguitart avatar jojuva avatar jonathanvila avatar jordiisidro avatar juanbalceda avatar lordofthejars avatar mcarreno-witbooking avatar mkbrv avatar rubencordeiro avatar sferrazjr avatar sguisado avatar simonemasoni avatar snyk-bot avatar srvaroa avatar visomar avatar xeeevi avatar ysb33r avatar

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.