diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..7919baa --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "fornax": { + "version": "0.15.1", + "commands": [ + "fornax" + ] + } + } +} \ No newline at end of file diff --git a/.github/workflows/build-gh-pages.yml b/.github/workflows/build-gh-pages.yml new file mode 100644 index 0000000..afba6aa --- /dev/null +++ b/.github/workflows/build-gh-pages.yml @@ -0,0 +1,54 @@ +# This is a basic workflow to help you get started with Actions + +name: build-gh-pages + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main", "init_gh-pages" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build-and-deploy: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup .NET 3.1 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 3.1.301 + + - name: Setup .NET 5 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 5.0.102 + + - name: Restore dotnet tools + run: dotnet tool restore + + - name: Setup Env Variable + run: set + + - name: Build + run: npm run build + env: + OLAT_TOKEN: ${{ secrets.OLAT_TOKEN }} + + - name: deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: ./src/_public # The folder the action should deploy. + CLEAN: true # Automatically remove deleted files from the deploy branch \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1b0b42b..b96460c 100644 --- a/.gitignore +++ b/.gitignore @@ -355,3 +355,4 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ +olat.p \ No newline at end of file diff --git a/README.md b/README.md index 8a38bba..edf5c44 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ # csbiology.github.io The csb website. + +# Local Development + +## Setup + +1. `dotnet tool restore` +2. `npm install` +3. Add olat password as `src/loaders/olat.p`, containing only the password as raw string. + +# Update css from scss + +- `npm run update-css`, will create minified css from `src/style/scss/main.scss`. + +## Run + +1. `npm run fornax` +2. Go to [http://127.0.0.1:8080](http://127.0.0.1:8080). \ No newline at end of file diff --git a/content/images/team/schneider.jpg b/content/images/team/schneider.jpg deleted file mode 100644 index d94e776..0000000 Binary files a/content/images/team/schneider.jpg and /dev/null differ diff --git a/generators/layout.fsx b/generators/layout.fsx deleted file mode 100644 index 646b333..0000000 --- a/generators/layout.fsx +++ /dev/null @@ -1,89 +0,0 @@ -#r "../_lib/Fornax.Core.dll" - - -open Html - -let scaffold (ctx : SiteContents) bodyCnt = - html [] [ - head [] [ - meta [CharSet "utf-8"] - meta [Name "viewport"; Content "width=device-width, initial-scale=1"] - title [] [!! "CSB - RPTU Kaiserslautern"] - meta [Name "description"; Content "Computational Systems Biology at RPTU Kaiserslautern, Germany"] - script [Defer true; Src "https://kit.fontawesome.com/0d3e0ea7a6.js"; CrossOrigin "anonymous"] [] - link [Rel "stylesheet"; Type "text/css"; Href "style/css/main.min.css"] - - - ] - - body [] [ - header [Class "header"] [ - div [Class "container"] [ - //Title "CSB - Computational Systems Biology" - a [Class "logo"; Href "/";] [ span [] [!! "CSB - Computational Systems Biology"] ] - - nav [Class "nav"] [ - ul [] [ - li [] [ a [Href "#research"] [ - i [Class "fa fa-flask"; HtmlProperties.Custom ("aria-hidden", "true") ] []; - !! "Research"]] - li [] [ a [Href "#team"] [ - i [Class "fa fa-users"; HtmlProperties.Custom ("aria-hidden", "true") ] []; - !! "Team"]] - li [] [ a [Href "#publication"] [ - i [Class "fa fa-book"; HtmlProperties.Custom ("aria-hidden", "true") ] []; - !! "Publications"]] - li [] [ a [Href "#teaching"] [ - i [Class "fa fa-graduation-cap"; HtmlProperties.Custom ("aria-hidden", "true") ] []; - !! "Teaching"]] - li [] [ a [Href "#contact"] [ - i [Class "fa fa-globe"; HtmlProperties.Custom ("aria-hidden", "true") ] []; - !! "Contact"] ] - ] - ] - ] - ] - main [Class "content"] [ - // bodyCnt - yield! bodyCnt - - ] - - // - script [Src "//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"] [] - script [] [!! """window.jQuery || document.write('