GithubHelp home page GithubHelp logo

joon-klaps / website-nf-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nf-core/website

0.0 0.0 0.0 695 MB

Code and files for the main nf-core website.

Home Page: https://nf-co.re

License: MIT License

JavaScript 8.61% TypeScript 2.34% XSLT 13.86% SCSS 5.39% Svelte 20.33% Astro 39.77% MDX 9.69%

website-nf-core's Introduction

This repository contains code for the nf-core website: http://nf-co.re/

Packages used

Here's how the website is built:

  • Language: Javascript
  • Frameworks:
  • Tools:
    • npm (package manager)

Development

Getting the code

To make edits to the website, fork the repository to your own user on GitHub and then clone to your local system.

gh repo fork nf-core/website nf-core_website
cd nf-core_website/

Installing dependencies

The website is built using Astro, a static site generator. To install the dependencies, run:

npm install

Running a local server

Ok, you're ready! To run the website locally, just start astro dev mode:

npm run dev

You should then be able to access the website in your browser at http://localhost:4321/.

File structure

We follow Astro's file structure for the website. The main files are:

  • src/pages/ - Astro pages
  • src/content/ - Astro content collections (markdown files for events, docs)
  • src/components/ - Astro/Svelte components
  • src/layouts/ - HTML layouts
  • src/styles/ - (S)CSS stylesheets
  • public/ - Static files (images, json files etc)

Updating the JSON files and cached markdown

Much of the site is powered by the JSON files in /public and the cached markdown files (from the pipeline docs) in /.cache.

They come pre-built with the repository, but if you want to rebuild them then you'll need to run the following commands. Note that you need to add a GITHUB_TOKEN inside a .env file to avoid hitting API limits (too early). See instructions on how to get a GitHub OAuth token (the token only needs the public_repo permission).

npm run build-pipeline-json
npm run build-component-json
npm run build-cache-force

Tools API docs

Tools docs are built using GitHub Actions on the nf-core/tools repo using Sphinx. These actions sync the built HTML files via FTP.

Contribution guidelines

If you are looking forward to contribute to the website or add your institution to the official list of contributors, please have a look at the CONTRIBUTING.md.

Community

If you have any questions or issues please send us a message on Slack.

Credits

Phil Ewels (@ewels) built the initial website, but there have been many contributors to the content and documentation. Matthias Hörtenhuber (@mashehu) worked on the concept and code for the new website rewrite.

See the repo contributors for more details.

Kudos to the excellent npm website, which provided inspiration for the design of the pipeline pages.

website-nf-core's People

Contributors

ewels avatar mashehu avatar jfy133 avatar renbot-bio avatar apeltzer avatar nf-core-bot avatar franbonath avatar maxulysse avatar christopher-hakkaart avatar ggabernet avatar drpatelh avatar friederikehanssen avatar mribeirodantas avatar edmundmiller avatar mahesh-panchal avatar medulka avatar louislenezet avatar sven1103 avatar alneberg avatar elinkronander avatar mirpedrol avatar chriswyatt1 avatar joseespinosa avatar lescai avatar abhi18av avatar kevinmenden avatar sofiahag avatar priyanka-surana avatar evanfloden avatar chlazaris 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.