Git Product home page Git Product logo

site's Introduction

Selenium Redesign (WIP)

Quick start

To view progress, you will first need to install Hugo on your machine.

Once Hugo is installed, navigate to the root directory of the project and run hugo server.

You should be able to view the WIP site at localhost:1313.

Editing data & content

Various components of the site are driven by content found in the /content and /data folders. This section will explain how to add and remove content from these sections.

Blog

Blog content can be found in /content/blog. Markdown files written to this folder will be displayed on the Blog section of the site, and previewed on the home page. All blog posts should have a metadata section at the top of the file:

+++
Description = "We are very pleased to announce the release of Selenium 3.0.
Title = "Selenium 3.0: Out Now!"
Date = 2016-10-13
+++

Blog Archive

Hugo doesn't come with a way to archive content by date, but there's a relatively simple workaround. To create a new year for the archive, do the following:

  • Create a content page in content/archive/<year>.md with an appropriate date value - see content/archive/2016.md for an example.
  • Add a link to the new year in themes/selenium/layouts/partials/blog-filter that links to /blog/<year>.

Posts dated in a given will automatically appear in the /blog/<year> archive.

Documentation

Documentation HTML files provided by the Selenium project can be found in /content/documentation. Per Hugo convention, the Documentation homepage can be found in /themes/selenium/layouts/documentation/section.html.

As seen in many of the HTML files in /content/documentation, pages can link to other pages like so:

ex: link to quick.html: <a href="/documentation/quick">Quick tour</a>

Downloads

Previous releases

Content for the Previous Releases modal on the Download page is stored in /data/releases.json. To add a new expandable section to the modal, add an entry to /data/releases.json matching the format shown below. Each entry in "links" represents a new row that will be displayed in the expanded version section.

{
// ...
"3.7": {
    "version": "3.7",
    "links": {
      "IEDriverServer_Win32_3.7.0.zip": {
        "name": "IEDriverServer_Win32_3.7.0.zip",
        "url": "https://selenium-release.storage.googleapis.com/3.7/IEDriverServer_Win32_3.7.0.zip",
        "lastModified": "2017-11-03 01:37:52",
        "size":"0.85MB",
        "etag": "18bd8ca48f4fe2074e121793502b2100",
        "version": "3.7"
      },
      "IEDriverServer_x64_3.7.0.zip": {
        "name": "IEDriverServer_x64_3.8.0.zip",
        "url": "https://selenium-release.storage.googleapis.com/3.7/IEDriverServer_x64_3.7.0.zip",
        "lastModified": "2017-11-03 01:37:51",
        "size":"0.98MB",
        "etag": "ab4ffe9461002f140659fcfb3d98b5f3",
        "version": "3.7"
      }
    }
  }
}

Language bindings

The list of Selenium Client & WebDriver Language Bindings on the Downloads page can be extended via its content files. To add a new row to the section, simply add a new file to /content/downloads. Conform to the format found in, for example, /content/downloads/java.md, and the new content will automatically be shown on the Downloads page.

Third Party

List content for the Third Party page is stored in /content/thirdparty. Hugo determines which list the content belongs in based on the Key attribute found in the markdown file.

Browser drivers

Look to /content/thirdparty/chromedriver.md for an example here. Hugo will add any /content/thirdparty/*.md file containing the Key = "drivers" field to the Third Party Browser Drivers list.

Language bindings

Look to /content/thirdparty/perl.md for an example here. Hugo will add any /content/thirdparty/*.md file containing the Key = "bindings" field to the Third Party Browser Drivers list.

Selenium Plugins

Look to /content/thirdparty/flex-pilot.md for an example here. Hugo will add any /content/thirdparty/*.md file containing the Key = "selenium-plugins" field to the Third Party Browser Drivers list.

Hosting solutions

Hugo's site has a great list of hosting solutions available.

Though we don't explicitly recommend any solution, Netlify, Gitlab, and AWS Amplify are popular & well supported options.

site's People

Contributors

diemol avatar alenros avatar alexandradenet avatar harsha509 avatar liushilive avatar boris779 avatar hiroksarker avatar manoj9788 avatar selenium-ci avatar cambiph avatar bredda avatar miekof avatar ilhanoztozlu avatar imba-tjd avatar adithyab94 avatar bongosway avatar misiekofski avatar thetestlynx avatar 948462448 avatar

Watchers

James Cloos 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.