-
Notifications
You must be signed in to change notification settings - Fork 15
Documentation website (including first Tutorial) #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
51ee203
Added Tutorial app showing basic overview of RISE and ELEVATE being u…
michel-steuwer 88d2c1b
Fixed warning.
michel-steuwer ff52aca
Moved Tutorial to markdown in docs folder using https://scalameta.org…
michel-steuwer 1ea6403
Check documentation with github actions
michel-steuwer 47192d2
Added Docusaurus documentation webpage
michel-steuwer 9bfb885
Tweaked github actions
michel-steuwer 15f1c2c
Tweaked github actions
michel-steuwer d50509f
Added deployment workflow
michel-steuwer 46ba4f3
Testing Deployment
michel-steuwer 62c3e19
Finalized github actions config
michel-steuwer 3b40f96
Reverted |-> notation
michel-steuwer 9cc2765
... and updated the documentation as well
michel-steuwer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Scala CI | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| compile-and-test: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| container: michelsteuwer/docker-scala-opencl:latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Checkout submodules | ||
| run: git submodule update --init --recursive | ||
| - name: Compile | ||
| run: sbt compile | ||
| - name: Run tests | ||
| run: sbt test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| name: Build and deploy documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| workflow_dispatch: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| check-documentation: | ||
| if: github.event_name != 'push' | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Checkout submodules | ||
| run: git submodule update --init --recursive | ||
| - name: Check documentation | ||
| uses: docker://michelsteuwer/docker-scala-opencl:latest | ||
| with: | ||
| entrypoint: sbt | ||
| args: docs/mdoc | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: '12' | ||
| - name: Build Documentation | ||
| working-directory: docs-website | ||
| run: | | ||
| if [ -e yarn.lock ]; then | ||
| yarn install --frozen-lockfile | ||
| elif [ -e package-lock.json ]; then | ||
| npm ci | ||
| else | ||
| npm i | ||
| fi | ||
| npm run build | ||
|
|
||
| deploy-documentation: | ||
| if: github.event_name != 'pull_request' | ||
|
michel-steuwer marked this conversation as resolved.
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Checkout submodules | ||
| run: git submodule update --init --recursive | ||
| - name: Check documentation | ||
| uses: docker://michelsteuwer/docker-scala-opencl:latest | ||
| with: | ||
| entrypoint: sbt | ||
| args: docs/mdoc | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: '12' | ||
| - name: Add key to allow access to repository | ||
| env: | ||
| SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
| run: | | ||
| mkdir -p ~/.ssh | ||
| ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
| echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa | ||
| chmod 600 ~/.ssh/id_rsa | ||
| cat <<EOT >> ~/.ssh/config | ||
| Host github.com | ||
| HostName github.com | ||
| IdentityFile ~/.ssh/id_rsa | ||
| EOT | ||
| - name: Release to Documentation to GitHub Pages | ||
| working-directory: docs-website | ||
| env: | ||
| USE_SSH: true | ||
| GIT_USER: git | ||
| DEPLOYMENT_BRANCH: gh-pages | ||
| run: | | ||
| git config --global user.email "actions@gihub.com" | ||
| git config --global user.name "gh-actions" | ||
| if [ -e yarn.lock ]; then | ||
| yarn install --frozen-lockfile | ||
| elif [ -e package-lock.json ]; then | ||
| npm ci | ||
| else | ||
| npm i | ||
| fi | ||
| yarn deploy | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ modules.xml | |
| .vscode | ||
| .metals | ||
| .bloop | ||
| .bsp | ||
|
|
||
| *.aux | ||
| *.bbl | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Dependencies | ||
| /node_modules | ||
|
|
||
| # Production | ||
| /build | ||
|
|
||
| # Generated files | ||
| .docusaurus | ||
| .cache-loader | ||
| docs/*.md | ||
|
|
||
| # Misc | ||
| .DS_Store | ||
| .env.local | ||
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
|
|
||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Website | ||
|
|
||
| This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator. | ||
|
|
||
| ## Installation | ||
|
|
||
| ```console | ||
| yarn install | ||
| ``` | ||
|
|
||
| ## Local Development | ||
|
|
||
| ```console | ||
| yarn start | ||
| ``` | ||
|
|
||
| This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server. | ||
|
|
||
| ## Build | ||
|
|
||
| ```console | ||
| yarn build | ||
| ``` | ||
|
|
||
| This command generates static content into the `build` directory and can be served using any static contents hosting service. | ||
|
|
||
| ## Deployment | ||
|
|
||
| ```console | ||
| GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy | ||
| ``` | ||
|
|
||
| If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
| }; |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| module.exports = { | ||
| title: 'RISE Language Documentation', | ||
| tagline: 'A functional pattern-based data-parallel language', | ||
| url: 'https://rise-lang.org', | ||
| baseUrl: '/doc/', | ||
| onBrokenLinks: 'throw', | ||
| onBrokenMarkdownLinks: 'warn', | ||
| favicon: 'img/favicon.ico', | ||
| organizationName: 'rise-lang', // Usually your GitHub org/user name. | ||
| projectName: 'doc', // Usually your repo name. | ||
| themeConfig: { | ||
| navbar: { | ||
| title: 'RISE', | ||
| logo: { | ||
| alt: 'RISE Logo', | ||
| src: 'img/logoDark.svg', | ||
| }, | ||
| style: 'dark', | ||
| items: [ | ||
| { | ||
| href: 'https://github.com/rise-lang/shine', | ||
| label: 'GitHub', | ||
| position: 'right', | ||
| }, | ||
| ], | ||
| }, | ||
| sidebarCollapsible: false, | ||
| prism: { | ||
| additionalLanguages: ['scala'], | ||
| theme: require('prism-react-renderer/themes/dracula'), | ||
| }, | ||
| footer: { | ||
| style: 'dark', | ||
| links: [ | ||
| ], | ||
| copyright: `Copyright © ${new Date().getFullYear()} The RISE language team.`, | ||
| }, | ||
| }, | ||
| presets: [ | ||
| [ | ||
| '@docusaurus/preset-classic', | ||
| { | ||
| docs: { | ||
| path: 'docs', | ||
| routeBasePath: '/', | ||
| sidebarPath: require.resolve('./sidebars.js'), | ||
| }, | ||
| theme: { | ||
| customCss: require.resolve('./src/css/custom.css'), | ||
| }, | ||
| }, | ||
| ], | ||
| ], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "name": "docs-website", | ||
| "version": "0.0.0", | ||
| "private": true, | ||
| "scripts": { | ||
| "docusaurus": "docusaurus", | ||
| "start": "docusaurus start", | ||
| "build": "docusaurus build", | ||
| "swizzle": "docusaurus swizzle", | ||
| "deploy": "docusaurus deploy", | ||
| "serve": "docusaurus serve", | ||
| "clear": "docusaurus clear" | ||
| }, | ||
| "dependencies": { | ||
| "@docusaurus/core": "2.0.0-alpha.70", | ||
| "@docusaurus/preset-classic": "2.0.0-alpha.70", | ||
| "@mdx-js/react": "^1.6.21", | ||
| "clsx": "^1.1.1", | ||
| "react": "^16.8.4", | ||
| "react-dom": "^16.8.4" | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.5%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| module.exports = { | ||
| docs: { | ||
| 'Getting started': ['greeting', 'setup'], | ||
| Tutorials: ['overview'], | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /* stylelint-disable docusaurus/copyright-header */ | ||
| /** | ||
| * Any CSS included here will be global. The classic template | ||
| * bundles Infima by default. Infima is a CSS framework designed to | ||
| * work well for content-centric websites. | ||
| */ | ||
|
|
||
| /* You can override the default Infima variables here. */ | ||
| :root { | ||
| --ifm-color-primary: #fc7536; | ||
| --ifm-color-primary-dark: #fc6018; | ||
| --ifm-color-primary-darker: #fb5609; | ||
| --ifm-color-primary-darkest: #d34503; | ||
| --ifm-color-primary-light: #fc8a54; | ||
| --ifm-color-primary-lighter: #fd9463; | ||
| --ifm-color-primary-lightest: #fdb390; | ||
|
|
||
| --ifm-code-font-size: 95%; | ||
| } | ||
|
|
||
| .docusaurus-highlight-code-line { | ||
| background-color: rgb(72, 77, 91); | ||
| display: block; | ||
| margin: 0 calc(-1 * var(--ifm-pre-padding)); | ||
| padding: 0 var(--ifm-pre-padding); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /* stylelint-disable docusaurus/copyright-header */ | ||
|
|
||
| /** | ||
| * CSS files with the .module.css suffix will be treated as CSS modules | ||
| * and scoped locally. | ||
| */ | ||
|
|
||
| .heroBanner { | ||
| padding: 4rem 0; | ||
| text-align: center; | ||
| position: relative; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| @media screen and (max-width: 966px) { | ||
| .heroBanner { | ||
| padding: 2rem; | ||
| } | ||
| } | ||
|
|
||
| .buttons { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .features { | ||
| display: flex; | ||
| align-items: center; | ||
| padding: 2rem 0; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .featureImage { | ||
| height: 200px; | ||
| width: 200px; | ||
| } |
Empty file.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.