Franklin.jl website generated on Github is much different than what i created on Local system

The Website on Github is https://raman-maker.github.io/maria.github.io/ and Local website on system is given below:

CLI output is given below:

    ~  cd ./Maria                                                       ✔ 
    ~/Maria    master    julia                                       ✔ 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.3 (2022-11-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Franklin

julia> serve()
  Activating project at `~/Maria`
→ Initial full pass...
→ Starting the server...
[ Info: Listening on: 127.0.0.1:8000, thread id: 1
✓ LiveServer listening on http://localhost:8000/ ...
  (use CTRL+C to shut down)
┌ Error: handle_connection handler error
│   exception =
│    IOError: write: broken pipe (EPIPE)
│    Stacktrace:
│      [1] uv_write(s::Sockets.TCPSocket, p::Ptr{UInt8}, n::UInt64)
│        @ Base ./stream.jl:1064
│      [2] unsafe_write(s::Sockets.TCPSocket, p::Ptr{UInt8}, n::UInt64)
│        @ Base ./stream.jl:1118
│      [3] unsafe_write(c::HTTP.ConnectionPool.Connection, p::Ptr{UInt8}, n::UInt64)
│        @ HTTP.ConnectionPool ~/.julia/packages/HTTP/RyUY8/src/ConnectionPool.jl:106
│      [4] unsafe_write(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection}, p::Ptr{UInt8}, n::UInt64)
│        @ HTTP.Streams ~/.julia/packages/HTTP/RyUY8/src/Streams.jl:95
│      [5] write(io::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection}, s::String)
│        @ Base ./strings/io.jl:244
│      [6] write(io::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection}, s::Base.CodeUnits{UInt8, String})
│        @ Base ./strings/basic.jl:758
│      [7] (::HTTP.Handlers.var"#1#2"{LiveServer.var"#16#20"{typeof(identity), Bool, Bool, LiveServer.SimpleWatcher}})(stream::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection})
│        @ HTTP.Handlers ~/.julia/packages/HTTP/RyUY8/src/Handlers.jl:61
│      [8] (::LiveServer.var"#25#26"{HTTP.Handlers.var"#1#2"{LiveServer.var"#16#20"{typeof(identity), Bool, Bool, LiveServer.SimpleWatcher}}})(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection})
│        @ LiveServer ~/.julia/packages/LiveServer/t2p5e/src/server.jl:606
│      [9] #invokelatest#2
│        @ ./essentials.jl:729 [inlined]
│     [10] invokelatest
│        @ ./essentials.jl:726 [inlined]
│     [11] handle_connection(f::Function, c::HTTP.ConnectionPool.Connection, listener::HTTP.Servers.Listener{Nothing, Sockets.TCPServer}, readtimeout::Int64, access_log::Nothing)
│        @ HTTP.Servers ~/.julia/packages/HTTP/RyUY8/src/Servers.jl:447
│     [12] (::HTTP.Servers.var"#16#17"{LiveServer.var"#25#26"{HTTP.Handlers.var"#1#2"{LiveServer.var"#16#20"{typeof(identity), Bool, Bool, LiveServer.SimpleWatcher}}}, HTTP.Servers.Listener{Nothing, Sockets.TCPServer}, Set{HTTP.ConnectionPool.Connection}, Int64, Nothing, Base.Semaphore, HTTP.ConnectionPool.Connection})()
│        @ HTTP.Servers ./task.jl:484
└ @ HTTP.Servers ~/.julia/packages/HTTP/RyUY8/src/Servers.jl:461


Check that your branch is properly set on GitHub (Repo settings, Pages, check the branch, it’s likely set on main at the moment and it should be set on gh-pages).

While you’re at it, make sure that your prepath is set correctly (Deploying your website)


I had earlier used gh-pages then too it was not working properly.
What *Prepath * should i use ? My repository is GitHub - raman-maker/Maria.github.io .

what is currently at the URL (maria.github) is drawn from master, i.e. it’s trying to show the README file as is, that’s why it looks wrong. It doesn’t look at anything that Franklin has produced.

So the answer to your question is that the branch is not set properly.

There is stuff on your gh-pages: GitHub - raman-maker/maria.github.io at gh-pages so that looks ok (I’ve not checked paths though). So try to set it to that again and wait 5 minutes to see if it gets deployed.

Lastly your prepath is not set in your config.md file, it should be set to maria.github.io.

<!--
Add here global page variables to use throughout your website.
-->
+++
author = "Raman Kumar"
mintoclevel = 2
@def prepath  = "maria.github.io"

# Add here files or directories that should be ignored by Franklin, otherwise
# these files might be copied and, if markdown, processed by Franklin which
# you might not want. Indicate directories by ending the name with a `/`.
# Base files such as LICENSE.md and README.md are ignored by default.
ignore = ["node_modules/"]

# RSS (the website_{title, descr, url} must be defined to get RSS)
generate_rss = true
website_title = "Maria Giovanna Dainotti"
website_descr = "Example website using Franklin"
website_url   = "https://tlienart.github.io/FranklinTemplates.jl/"
+++

<!--
Add here global latex commands to use throughout your pages.
-->
\newcommand{\R}{\mathbb R}
\newcommand{\scal}[1]{\langle #1 \rangle}

Should i push it all again ?

don’t use @def here, follow the blueprint

Ok sir, I will keep only prepath = “maria.github.io

New link is Dr. Maria Giovanna Dainotti

   ~/Maria    master !1    git push --set-upstream origin master    ✔ 

Username for 'https://github.com': ramanjarpura@gmail.com
Password for 'https://ramanjarpura@gmail.com@github.com': 
remote: Permission to raman-maker/maria.github.io.git denied to raman-maker.
fatal: unable to access 'https://github.com/raman-maker/maria.github.io/': The requested URL returned error: 403
    ~/Maria    master !1                                 128 ✘  27s  


I have difficulty in pushing up prepath addition.

it is still not working even after git push . Please see changes GitHub - raman-maker/Maria.github.io here. Dr. Maria Giovanna Dainotti
Please look my prepath in config.md file below.

<!--
Add here global page variables to use throughout your website.
-->
+++
author = "Raman Kumar"
mintoclevel = 2
prepath  = "https://github.com/raman-maker/Maria.github.io"

# Add here files or directories that should be ignored by Franklin, otherwise
# these files might be copied and, if markdown, processed by Franklin which
# you might not want. Indicate directories by ending the name with a `/`.
# Base files such as LICENSE.md and README.md are ignored by default.
ignore = ["node_modules/"]

# RSS (the website_{title, descr, url} must be defined to get RSS)
generate_rss = true
website_title = "Maria Giovanna Dainotti"
website_descr = "Example website using Franklin"
website_url   = "https://tlienart.github.io/FranklinTemplates.jl/"
+++

<!--
Add here global latex commands to use throughout your pages.
-->
\newcommand{\R}{\mathbb R}
\newcommand{\scal}[1]{\langle #1 \rangle}

You are mixing up the adress of the repository

which links to the main branch reporitory where only two files are but for example not the file you can find in the source code of your generated html at

https://raman-maker.github.io/Maria.github.io/

line 5 which reads

<link rel="stylesheet" href="/https://github.com/raman-maker/Maria.github.io/css/franklin.css">

which does of course not exist (you see that by looking at the repository). Not only is the URL itself wrong, it also starts with a / which looks at the current URLs base path and starts from there with https:/// - you will not find anything there even if there would be a css folder with the Franklin css in the repo, which it isn’t .
What you want to link to is

https://raman-maker.github.io/Maria.github.io/

as a prefix to get the css at the place where it is namely

https://raman-maker.github.io/Maria.github.io/css/franklin.css

(copy this to your browser and you see it works and delivers a css). This is what you want to end up with having in the <link rel=> s href. And that is also explained in the tutorial on Franklin.

What changes should i do and where ?? where in line 5 should i correct it ?

The shortest guess is – as explained in my very long last answer – your PREPATH is wrong, it has a / upfront with is wrong and the adress you postet in there is also wrong, it is currently the adress of the GitHub repository but it should be set to the URL you are deploying the page to.
Line 5 refers to your deployed HTML where the <link rel= is at, since I can not point to your code, since you do not provide code here.

But I do not know what it is set to, since even after mentioning that 3 times by now, you never provided any insight into any code, so I can only describe what I see not what is to fix. You also never describe what you tried and where you are at.
So I can only solve the “inverse problem”, looking at the result and guessing what your code might be. That is challenging, takes a lot of time, and I can only give you hints what the reason might be, since you never provide examples. So I write looong answers, and you answer with further very short questions. That is not much fun.

And at this point - after mentioning all this a fourth time – and presuming you do this page for someone else, I think you might even get paid (and I at this point don’t) – so I give up now.

1 Like

Sir , I am just learning to make it even the professor does not know that i am making website for her. :laughing: :sweat_smile: .

Posting her personal data (though possibly publicly available) here – is kind of creepy, you should then maybe focus on a project or your own page instead.

2 Likes

NO, Actually her original website is bad so i thought to make it better. I am nothing to make my own website. :laughing:

I do not think that is a good idea to do that without asking her.
Even less ok is to post her data here.

1 Like

it is already public data. Why then you made your website ?

Nothing changed in website . How to make changes ?

I made my website for myself since I can do with my data what I want. Also: Over my own website containing my data, I have full control, that is, I can take that down if I want to. I do not want to, since that page represents my research.

But using other persons data, even if publicly available, is not nice. Posting that data somewhere else (for example here) – is not ok.

Concerning your latest screenshot. Please read again what Thiebaut wrote (no I will not @ mention him) on deploying a homepage and the pre path. That page explains what you have to do with the pre path. And please – I am writing that for the fifth time now – read this Please read: make it easier to help you .

Finally, please take her data down and do a project that does not use other peoples personal data.

PS: The website did change – you just have not read any of the previous posts about how the pre path works. its called pre path for a reason and not url-prefix for example.

Ok sir , now website is working but still one error that https://raman-maker.github.io/Maria.github.io/Publications/ is not working till yet. i had to set prepath = Maria.github.io/. thanks for your hint. Now i would like to delete her data , but how can i delete it ? should i put flag in it ?