-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Port website to Franklin.jl #145
Conversation
I will tackle the previews and CI tomorrow. |
It seems previews require using Netlify? @Saransh-cpp do you have any experience here that avoids Netlify? |
Hmm, I think using GH pages instead of Netlify should be possible. The documentation states -
But, Ideally we should be able to do this using - - name: Fix URLs for PR preview deployment (pull request previews)
if: github.event_name == 'pull_request'
run: |
echo "PREVIEW_FRANKLIN_WEBSITE_URL=https://fluxml.ai/previews/PR${{ github.event.number }}/" >> $GITHUB_ENV
echo "PREVIEW_FRANKLIN_PREPATH=previews/PR${{ github.event.number }}" >> $GITHUB_ENV
- name: Deploy (preview)
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this build is a PR build and the PR is NOT from a fork
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
BRANCH: gh-pages # The branch where the PRs previews are stored
FOLDER: __site
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_FOLDER: "previews/PR${{ github.event.number }}" # The website preview is going to be stored in a subfolder
- name: Deploy (main)
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # Replace here the branch where your website is deployed
FOLDER: __site Could you point me to a repository already using Franklin? I can check their |
I got it working! I have created a PR in your fork to set everything up - darsnack#1. Merging this into the Here is the working demo -
Time to update Franklin's documentation 😉 |
Just because I found the links for another thread... Turing has a nice setup in which the docs are integrated (at least visually) into the website. Maybe we can steal things from how they do it at https://github.com/TuringLang/turinglang.github.io |
That does look nice, but the website looks a bit off in smaller screens. Maybe we should build up on the new website in new PRs and let this one go in as it is. That also brings up the question of how long will we be keeping the docs in Documenter (given how good the upcoming version of Pollen looks 👀 ) |
* Fix deployment script * Enable previews * Store previews in gh-pages * Update GH Action dependencies * Remove non-prod code
The bot isn't commenting because the PR is from a fork instead of a branch. Not sure if we need to keep that restriction. Is it just a permissions thing for pushing deployments? Either way, we won't be able to view the deployment until the repo is configured to deploy from I would like to merge this sooner rather than later, since rebasing this PR is a bit annoying. |
Similar to |
Is there a preview, or are there no significant visible differences? |
You can see a preview here - https://saransh-cpp.github.io/fluxml-franklin-port/ |
And there should be no major differences. |
Could someone who knows update https://github.com/FluxML/fluxml.github.io#running-locally to match? |
This closes #136. I have aimed for a 1-1 port of the site with minimal changes.