Comments (4)
Hello @Saransh-cpp help with the docs is very welcome.
what you're suggesting is very close to what is currently being done for the julialang website (see the gh-previews
branch: https://github.com/JuliaLang/www.julialang.org/tree/gh-preview/previews). Each of these subfolder contains a functional copy of the site with the changes from that preview and with paths properly set (e.g. href="/previews/PR1682/....
if you look at https://github.com/JuliaLang/www.julialang.org/blob/gh-preview/previews/PR1682/index.html).
I think it would be pretty straightforward to adapt that so that it dumps these preview subfolders onto gh-pages
itself in a dedicated folder with a special name (just previews
works but there might be a risk of clash). Let's assume for now you keep everything the same and use previews
, you'd then do (pretty much as you suggest)
www.fluxml.ai/previews/PR165/
you could even have a robot posting that preview link (as is done on the julialang site except that it's done for Netlify)
hope this helps and ping me here (or from the fluxml repo) if you encounter an issue or would like to review something (and please if all this ends up working for you, an addition to the docs would be amazing, thanks!)
from franklin.jl.
wonderful, thanks in advance for the added section and glad that you made this work @Saransh-cpp (and don't hesitate to link to your repo + site in the docs)
from franklin.jl.
(I can update the docs if this will work, or if someone here has tried this out!)
from franklin.jl.
Thank you for the suggestions, @tlienart! I got this to work!! I will add a new deployment section to Franklin's website this week (and also update some outdated deployment documentation)!
Crossposting this from FluxML/fluxml.github.io -
Here is the working demo -
- The test repository - https://github.com/Saransh-cpp/fluxml-franklin-port/tree/main
- The deployed website - https://saransh-cpp.github.io/fluxml-franklin-port/
- A PR that tries to remove some contents from the website - Saransh-cpp/fluxml-franklin-port#1
- The bot's comment - Saransh-cpp/fluxml-franklin-port#1 (comment)
- The preview documentation - https://saransh-cpp.github.io/fluxml-franklin-port/previews/PR1
from franklin.jl.
Related Issues (20)
- Pagevars are not parsed correctly ? HOT 4
- Build site in another folder? HOT 4
- XML prolog lost from RSS template HOT 2
- \toc error HOT 7
- Tag pages don't urlencode their crosslinks
- FR: Button to copy code blocks to clipboard HOT 2
- May insert variable value into a HTML tag attribute? HOT 2
- Does Franklin support Pandoc and MathJax HOT 4
- Deploying with github not working after first commit, getting "there is nothing to commit"
- Option to exclude sidebar contents in lunr search
- Using `python3` as the language of a multiline codeblock results in an error HOT 2
- Demos page leads to 404 HOT 6
- insert not working when using the GitHub actions HOT 1
- Table of contents: level 4 headings do not consistently stay indented under the previous level 3 heading HOT 1
- DataScienceTutorials.jl deployment HOT 1
- Pagevariables not always available? HOT 8
- How to add total words and time for reading in a post HOT 1
- Franklin websites fail to being parsed by openring
- Demos Page Shows 404 Error HOT 1
- How to modify footnote styling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from franklin.jl.