Coder Social home page Coder Social logo

rseng / rse-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 320 KB

GitHub action to generate web interface for a research software encyclopedia

Home Page: https://rseng.github.io/software/

License: Mozilla Public License 2.0

Dockerfile 12.28% Shell 87.72%
rse rseng research-software-encylopedia

rse-action's Introduction

Research Software Encyclopedia Action

https://img.shields.io/badge/rseng-project-purple https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg

If you have a research software encyclopedia flat file "database" stored in a version controlled repository, you might want to export a web interface to GitHub pages for users to explore it. This is the purpose of this action. The portal currently looks like this:

img/home.png

And a repository like this:

img/repo.png

An automated generation at rseng/software can be viewed here. The interface also exports a static "API" so the repositories can be programatically obtained. See https://rseng.github.io/software/data.json for an example.

Quick Start

To use the action, you can specify this repository (a branch or preferably a release) and then a path to some custom urls.txt files to include. For example, here is how to generate the interface for an external repository, and upload it as an artifact.

name: generate-web

on:
  pull_request: []

jobs:
  GenerateStaticWeb:
    name: Generate static web
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v2
      - name: Generate Static Web

        # Important! Update to release https://github.com/rseng/rse-action/releases
        uses: rseng/rse-action@master
        with:        
          repo: https://github.com/rseng/software
          config: rse.ini
          export_dir: docs
          force: true
 
      - name: Upload data as artifact
        uses: actions/upload-artifact@v2-preview
        with:
          name: static-web
          path: docs/

Note that if you want to export for GitHub pages, you'll need to edit the prefix and host that is rendered into the static files. See examples for this file and others with more detailed comments.

important you must define a prefix if you want to export to a GitHub pages that isn't served at an organizations primary GitHub pages, and a host regardless.

Inputs

name description default required
repo repository url or relative path to root of repo. . no
config path to rse.ini config file to discover repository. rse.ini no
export_dir path to export directory. docs/ no
force If export directory exists, force overwrite. unset (false) no
issues_repo Repository to post taxonomy/criteria annotations https://github.com/rseng/software no
prefix A prefix for static export (for GitHub pages) / no
host The hostname (and optional port) for GitHub pages unset no, but suggested

rse-action's People

Contributors

vsoch avatar

Watchers

 avatar  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.