All Projects → scala → Scala Lang

scala / Scala Lang

Licence: other
sources for the Scala language website

Labels

Projects that are alternatives of or similar to Scala Lang

Asciidoctor Stylesheet Factory
🎨 A utility project for producing the default stylesheet for the HTML converter in Asciidoctor. All other uses are deprecated. Assembled using Compass, Sass and Foundation.
Stars: ✭ 169 (-8.65%)
Mutual labels:  scss
Buttons
A collection of CSS buttons.
Stars: ✭ 177 (-4.32%)
Mutual labels:  scss
Portfolio
📰 Meu portfólio criado com o objetivo de mostrar meus projetos recentes e futuros ao longo da minha carreira.
Stars: ✭ 178 (-3.78%)
Mutual labels:  scss
Toucaan
Intrinsic Web Design.
Stars: ✭ 170 (-8.11%)
Mutual labels:  scss
Sassyjson
[UNMAINTAINED] A Sass API for JSON.
Stars: ✭ 173 (-6.49%)
Mutual labels:  scss
Buttercake
Material Design Components, Responsive and Modern CSS Framework Built with Flexbox 🍰
Stars: ✭ 178 (-3.78%)
Mutual labels:  scss
Tuicss
Text-based user interface CSS library
Stars: ✭ 167 (-9.73%)
Mutual labels:  scss
Texture
A configurable jekyll theme for simply beautiful blogs.
Stars: ✭ 185 (+0%)
Mutual labels:  scss
Frontplate
フロントエンド開発の効率をあげるフルスタックテンプレート
Stars: ✭ 175 (-5.41%)
Mutual labels:  scss
Composeacademy
Website providing snippets and examples for Jetpack Compose on the Android platform
Stars: ✭ 181 (-2.16%)
Mutual labels:  scss
Fresh
Fresh shiny themes
Stars: ✭ 170 (-8.11%)
Mutual labels:  scss
Hexo Theme Memory
A minimal hexo theme.
Stars: ✭ 173 (-6.49%)
Mutual labels:  scss
Sass Extras
Useful utilities for working with Sass
Stars: ✭ 179 (-3.24%)
Mutual labels:  scss
Browser Hack Sass Mixins
Browser hack sass mixin - Apply your SCSS to a specific browser - CSS hacks for: IE, Chrome, Firefox, Edge, Opera
Stars: ✭ 170 (-8.11%)
Mutual labels:  scss
Nl Covid19 Notification App Website
Project website
Stars: ✭ 183 (-1.08%)
Mutual labels:  scss
Compile Hero
🔰Visual Studio Code Extension For Compiling Language
Stars: ✭ 169 (-8.65%)
Mutual labels:  scss
Nigerialogos
High quality vector logos for Nigerian companies
Stars: ✭ 178 (-3.78%)
Mutual labels:  scss
Hackercouch
Hospitality for Hackers
Stars: ✭ 185 (+0%)
Mutual labels:  scss
Sass Extract
Extract structured variables from sass files
Stars: ✭ 183 (-1.08%)
Mutual labels:  scss
Node Redux Auth
Token authentication system using Node, Mongo, React, Redux
Stars: ✭ 179 (-3.24%)
Mutual labels:  scss

scala-lang.org

This repository contains the source for the scala-lang.org web site.

It does not contain the source for the docs.scala-lang.org subdomain. You can visit the docs.scala-lang repository if you are interested in contributing to the Scala documentation site.

The source for the Scala compiler and standard library are at https://github.com/scala/scala. Bug reports are at https://github.com/scala/bug.

Dependencies

To build the site you can either use Compose or Bundler. Compose is a good option if you are just getting started and want something simple. If you are already familiar with the Ruby ecosystem then Bundler might be the most comfortable for you.

Either way the site is built with Jekyll and is typeset mostly in Markdown.

Building the site

Make sure you are in the root directory of the cloned repository.

For Compose:

bin/serve

For Bundler:

bundle install
bundle exec jekyll serve --incremental

Viewing the site

Regardless of your method of running Jekyll, the generated site is available at http://localhost:4000.

Editing the Site

YAML Front Matter

The "YAML Front Matter" is nothing more than the header on each page that you intend for Jekyll to parse. It contains information such as the name of the HTML template (layout) chosen for the specific document, and the title of the document. An example YAML front matter might look like:

---
layout: page
title: My page title
---

You can use these fields in the YAML front matter later in your document. For example, to make a header with the title of the document, in Markdown you would write:

---
layout: page
title: My page title
---

# {{ page.title }}

Body text here...

# {{ page.title }} would be rendered in HTML as, <h1>My page title</h1>.

Recommended Markdown Editor

Visual Studio Code has great support for Scala, Git, and Markdown.

Linking to internal pages

The least error-prone way to make links is to use this format: [link text]({{ site.baseurl }}/path/to/page/page.html)

{{ site.baseurl }} is a site-wide variable that represents the root directory of the static site. So, to display the Scala logo image you can simply write: ![Img alt text]({{ site.baseurl }}/resources/img/scala-logo.png)

Permalinks

We try to follow a pretty permalink style, so that any generated page will have a link finishing in a slash character (/). This will tell Jekyll to build that particular page as an index.html inside a folder with a name as specified in the provided permalink. i.e.: if a page has a permalink as follows:

permalink: /what-is-scala/

This will tell Jekyll to create a what-is-scala directory, with an index.html file inside. Links to this page will refer to the {{site.baseurl}}/what-is-scala/.

Custom collections and data

Every collection is a directory starting with an underscore character (_), containing a Markdown file for each member of the collection. These Markdown files start with a YAML front matter containing the data for this item, and can optionally contain markdown text to be rendered as html.

Right now there are no collections being rendered as specific pages in the site. They are only consumed internally as data. In the future this can be changed by specifying the global output: true variable in the _config.yml custom collections section. You will also need to specify a layout by using the defaults settings in the _config.yml file. i.e.:

defaults:
  - scope:
      path: ""
      type: collection_name
    values:
      layout: layout_name

To access data from a custom collection refer to site.<collection-name>. The collection's name will be the name of it's directory without the underscore character. i.e.: to access the data inside _downloads, use site.downloads.

Some of our data has been modelled as YAML files inside the _data folder. We generally do this for data that is used throughout the whole site. For example we do this for the navigation bar links.

The Backend

On every commit to the scala/scala-lang repository a jenkins job will generate the site using jekyll and copy the resulting files to the webserver. NOTE: the rsync of this job also deletes whatever is in the webserver directory with explicit exceptions: we need to keep the files listed below. Kind of a hack.

There are additional files on the webserver:

  • Subdirectory scala-lang.org/old is a static copy of the old website. It was generated once and copied there, and it stays like that.
  • Most of the files in /home/linuxsoft/archives/scala/ (on chara, accessible through ssh with your LAMP account) are synchronized to the subdirectory scala-lang.org/files/archive by another hourly jenkins job. This folder is used by the nightly and release jenkins jobs to publish scala releases:
    • distribution files (tarballs etc) in /
      • older distribution files, RCs in /old/ (not sure how exactly this is split up..)
    • api docs for distributions in /api/
    • nightly builds in /nightly/distributions/
    • nightly api builds in /nightly/docs-xxx/
    • nightly pdf builds (spec etc) in /nightly/pdfs
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].