#docs-website
1 messages · Page 8 of 1
ok, implemented the injection, now to figure out how to fetch the latest version, mmh
uff javaducks is on java 17
can't use getLast, lol
Name 'getLatestVersion' must match pattern '^(?:(?:.{1,3})|(?:[gs]et[^A-Z].*)|(?:(?:[^gsA-Z]..|.[^e].|..[^t]).+))$'.
ah yes
is get banned?
thats like... eyewateringly red 
its literally red
wild. but yeah as long as it isn't sticky and a better colour i have nothing against that
Javadocs > JavaDocs. But yeah, that is fine I suppose. font looks funny. probably a darker shade of red
these are personal opinions though
darker looks weird with the white text somehow
what does our legacy thing use? (legacy downloads page)
font is the same for rest of javadocs
iirc that is also white text in dark mode at least
#ef4444, ill yoink that

ef4444? iirc that's tailwind red 500
yes
it is yea
so works for me
the fact you know that worries me
let's just say that I'm a fan of the tailwind color palette
I can one up that, red-50 at work is #e95450
What part of the message is clickable? "here"?
That's easier to read so I like it
thats hard
I just fetch the strings from the endpoint names
I guess I could capitalize
mmh, in backend or in frontend? 😄
How are you doing this?
also is there a pr for this yet?
idk if you're using the injection stuff
what is seiama
fake kyori
ufff
at some point the javadocs changed their html
from class="topNav" to class = "top-nav"
I'm guessing around java 16/17?
so probably 1.16 somewhere
could do a version check then
wait fr?!
So you currently injecting the warning inside the nav? Or why do you need to know the nav class?
I kind off had a dumb idea to have some sort of rest api(if that's the right term?) to get the available javadocs
why would you care about that?
oh I still have the function mode for the converter thingy open
that doesnt sound like fun to work on
dinner instead sounds very fun
Uh, for my own usage I wanted to make a page that just displayed all the projects with their available versions, kind off like what adventure has
wouldnt that page be better served by javaducks directly?
is it just me or did lynx's userdev bump PR get reverted as well
did i say I hate non linear history?
Probably yeah but I had no idea how to do that
time to add thymeleaf, lol
and I also kind off figured that was out of scope for javaduck
fixed
then open an issue first to see what riley thinks
What’s the history behind seiama?
kyori’s evil twin
Makes sense
i mean it isn't a word
like my other projects, name has no meaning and is made up
fun
@opal flare idk if a classpath resources is more pretty, unless you know a better way:
I guess it is nicer because no requirenonnull and stuff
I think I fixed my pr
pushed
#1129091109742727228 message yeah lynx changed the title - just needs to add the new one
pushed to your branch; want to squash it into your stuff?
looking good
I use -
production config for reference
let me know once squashed mini
@spice temple https://jd.papermc.io/paper/1.12/overview-summary.html
I vote we untick this so riley can't even think about it
https://i.imgur.com/EccETpo.png
I will smack you

if you want to go after anybody, go after the creator of git instead
quack
do you have a way to add the favicons?
I dont know how to upload files via ssh, lol
actually, well, this is more ocmplicated
we would need to add them to infra and mount them as volumes?
wait sftp I am stupid
but doesnt help
gets mounted into /config
well, should probably add a separate one for these assets
riley being the only person here who does not squash merge is wild
I do on the repositories where it matters for changelogs, I don't on others
the only other person would be zml 
I wonder if comment support in configurate will be merged via merge commit
actually that gets mounted as a config map, idk if thats what we want
well maybe it does still work
there's some important information lost during a squash merge - commits that are signed by someone's actual key is yeeted in favour of GitHub's signature when doing a squash merge, which yeets the whole purpose of signed commits by authors
which is why I despise them
beautiful https://i.imgur.com/Tk0lAoe.png
mmh the favicon is there on the disk
but https://jd.papermc.io/paper/favicon.ico is a 404
but I also dont see a warning in the logs
i feel like having the entire banner or at least the entire text clickable would be nicer
cache?
i acutally don't remember there ever being one for jdocs. iirc it was always just the default icon for me
thats why I wrote code to add one, lol
oh the 404 might be CF
but the file is broken
ok so what I uploaded wasnt a ico file, lol
its a png
actually that should be fine
Seems like the 1.20 redirect is broken now. going to e.g. https://jd.papermc.io/paper/1.20/org/bukkit/inventory/InventoryHolder.html just sends you to the 1.20.6 main page, not InventoryHolder.
That breaks all JD links in the docs
yeah, riley needs to review that PR
actually lemme rebase that
ok just one easy conflict
rebased
actually lemme use a classapth resource here too
People only fall back to authority figures like "the creator of git does it that way!" when they don't actually have a valid argument to support their beliefs
It's like rule #1 of debate, authority figures are not arguments
http://localhost:8059/v1/projects/paper/versions/1.20.6
https://i.imgur.com/kYppwIh.png
ready to be merged /s
yes locahost link
project_id name seems inconsistent when its called project everywhere else, no?
ok, fixed, good to go now @opal flare https://github.com/seiama/javaducks/pull/15
i just copied bibliothek stuff lol
I'd much prefer the docs PR gets merged first
I was actually referring to the linux repo as a "at least it doesn't look like this"
not a "omg linus is god"
because I'd rather avoid the ugly plain-text "redirecting" page 99% of the time - it only really exists for older links to not 404 them
my real reasoning
and github's key is used in many cases - web-editor commits, etc. nothing that proves "user xyz did this"
Rebase and fast forward is better than squash, but losing signed commits is orders of magnitude better than a shitty commit history filled with merges
fair to a point - at the same time, for security, not yeeting signatures from commits is good. people are getting hacked left and right, and it's easy to slip something into a commit
Well if that's important to you then it would still apply since you could verify the commits are signed prior to merging the PR
That's one of those areas git could be improved
rebases don't maintain the context of the commits they came from, and they should (mercurial does it)
It's not visible on my browser because of how fast it is and it's better than what we have rn, the broken links 🤷♂️
yeah, github's UI doesn't help either, since it shows "Verified" even though it's not an actual user that signed it, it's signed on GitHub's key which just means it was done on a PR merge or web-editor commit
Which would even allow you to rebase public branches and people could just git pull and git would "do the right thing", but right now that's not how it works (probably never will) 😦
I still don't quite understand why the PR I merged on docs was yeeted - I tested it and the links worked fine
I am only the executive here
If master of docs says they need a revert, I revert, lol
it would shove the latest versions into links/other version references in older versioned pages
MiniDigger, the First of his Name, the Lord of PaperMC, the Hand of Paperchan, the Protector of the Realm, the Master of the Docs
I am not the master of the docs, lol
I vote we make Hand of Paperchan his new official title
aye
What do ya mean
exactly what I said - I looked through older docs version pages and didn't see any obvious javadocs links
The problem wasn’t with older versions, it failed to account for when 1.20 is no longer the newest.
but that could’ve just been fixed without a revert no..?
So I said at the time
especially considering it didn’t break anything yet
^
it's fixed now tho :)
Yeah and we can get rid of the ugly merge (I did read the convo, I’m joking 😂)
I’ll grab my laptop and review it from bed
i support ollie for wanting a clean commit history
heh @still apex, you're kinda revealing my longer-term plans a bit there :p
O_o
whats that?
whats what
well
we have bibliothek on the papermc side, javaducks over there, and a branch on javaducks which expands the functionality to be more dynamic
where it can load any javadoc from maven
/javadoc/io.papermc.paper/paper-api/1.20.5-R0.1-SNAPSHOT/index.html ex
is my thing """good""" enough to make a draft pr?
can you show me a preview of the responses?
in json form
the secret channels
Apparently it’s only for the elite
Yeah, true but sad. 🙂
Download release times are doing a thing, just incase yall didnt notice
cannot reproduce
Maybe something on my end then, It doing it in multiple browsers so not sure, not a big deal
At le as dt it's all the same exception,
test { // cba to fix the test atm
isEnabled = false
}
``` (:
Just saw this sorry, im in NZ (its 10pm rn)
But also Ive just noticed a similar issue on twitch so maybe theres something deeper going on
Try another browser?
t doing it in multiple browsers so not sure, not a big deal
Oh
Yeah, chrome and firefox doing it
try resyncing your os's time
You win, not sure how it got outta sync or how I didnt think of that, not a paper issue
clock drift is natural, so just make sure you have the automatic sync enabled
if it drifts despite automatic sync, it's possible it's something more sinister
get a nuclear clock
Im thinking its something else, turned out it was like 12 hours out, it was 100% on time yesterday
Why is the slogan recommending the use of Linux missing? I think it's good to have hints
I remember when I chose Windows before, there would be a prompt for me to use Linux to get the best performance
True
Yeah, we removed it for some reason. There was a discussion about it
Think it’s cause it was Linux / Mac and we aren’t recommending Mac
Let's add a warning for Windows instead then
Bla bla we don't recommend using windows for production deployments
Well, once you select windows
I’m pretty sure that is what it was before
Yeah it was part of my PR
we had spoken about it
.
this is where the whole convo started basically
tried switching the message to descriptions
then the argument that mac isn't recommended came
and we ended up deciding to just not put that label
Noah recommended it
too 👏 many 👏 noahs 👏
i agree lets get rid of the one who banned me
i think they should promote me to paper maintainer so its even more confusing xd
if/when mac gets separated out it could be included
Just detect windows?
idk, I am just happy I did my first PR to paper
just waiting for the hard fork to MAYBE actually make a PR to paper itself. Sincce I do not understand a single fk how patches work
whats your pr again?
no reason to stop now
ollie has nothing to do
ya
someone reconfigure prettier, because it SUCKS
it's formatting my beautiful
const result = await fetch(`https://api.papermc.io/v2/projects/${project}`)
.then((r) => r.json());
into
const result = await fetch(`https://api.papermc.io/v2/projects/${project}`).then((r) =>
r.json()
);
I used to use windows 11 to set up a Minecraft server, and since then, strange lags have been around me for a long time, bothering me for months
Related to the portal, MSPT peaks 1000-1500
At the time, I didn't think Windows was that bad
However, rather than trying to find a way to investigate the cause, I think it would be quicker to use Linux to get rid of the problem
When someone around me wants to set up a Minecraft server using windows, I always give them a screenshot of the text that suggests using Linux to get the best performance, but recently I noticed that the prompt has disappeared
linux is just better than windows for server hosting on so many levels
i am honestly surprised only around 7 % of servers use windows though
you will have a lot of fun rebasing patch files 
Windows might be good for gaming
yeah that's why i said server hosting. it's really sad linux still lacks behind in that department
fortunately linux works just fine for the games that I like to play
time to kill prettier
No.
:P
2024-05-15T01:53:34.192-07:00 INFO 51620 --- [ scheduling-1] c.s.javaducks.service.JavadocService : Preloading javadoc for Artifact[groupId=io.papermc.paper, artifactId=paper-api, version=1.20.6-R0.1-SNAPSHOT]...
2024-05-15T01:53:34.398-07:00 INFO 51620 --- [ scheduling-1] c.s.j.service.maven.MavenServiceImpl : Resolved snapshot for ArtifactRequest[groupId=io.papermc.paper, artifactId=paper-api, version=1.20.6-R0.1-SNAPSHOT, timestamp=null, buildNumber=null, classifier=javadoc, extension=jar, hash=null, signature=null] to Snapshot[timestamp=20240514.060805, buildNumber=55]
2024-05-15T01:53:34.408-07:00 INFO 51620 --- [ scheduling-1] c.s.javaducks.service.JavadocService : Successfully preloaded javadocs for Artifact[groupId=io.papermc.paper, artifactId=paper-api, version=1.20.6-R0.1-SNAPSHOT]
wheee @spice temple
Nice
neat
https://minidigger.github.io/paperstats/#1.16.4
======== 1.16.4 =======
total from bstats - 251
paper servers - 249
purpur servers - 10
???
why is bstats so off with it's total
not every server has a plugin reporting to bstats
oooh okay i think i understand
(it's because Paper is faking its numbers ofc)
but yeah unfortunately the bstats api numbers are only half useful
nice
because 0 is technically in the "valid" space
-1 makes it clear theres an error
But nothing found shouldnt be an error I guess
Just crash the browser on error
Is the brig api exclusive to paper plugins?
doesnt look like it
I think Noah meant paper-plugin.yml
thought spigot does not have the brigadier api
oh
#394727 of people getting confused by the term paper plugin
I know, I am just not super happy with alternatives
What I like the best so far is legacy vs modern
owen-plugin
we need a name for plugins using the paper plugin system and for plugins simply using the paper api instead of spigot api
i think there was some thing where you need to register the brig command earlier for it to be able to get executed using the /execute command, for which you need the paper plugin bootstrapper
Issue is that the paper plugin system is still a bit experimental and stuff
We don't wanna make the same API guarantees
Plus until now it missed a good way to write commands
Roadmap?
Maybe something with bootstrap in its name? PaperBoot lol
Ok cause it was using the lifecycle api, that’s why I was confused.
yes?
it will only work on paper, but does not require to be a paper plugin.
using the lifecycle API lets you inject in at a point where datapacks, etc, can use your commands
think paper plugins are only when you want to use bootstrap, loaders or anything similar
can you do it when bootstrapping?
I'm not sure what you mean by that
I think you only can do this at bootstrap
Paper Stacking
German: Papier auftackeln
Roadmap for what?
paper, aka roadmap to the hard fork.
https://docs.papermc.io/paper/dev/roadmap does not really contain much info.
We have the GitHub board
Can’t wait for the day
Oh okay, would be nice to see a summary from everything in a "State of Paper" ngl
That sounds like effort that could be spend elsewhere
When only a handful people will watch and understand anyways
Yeah
I also think it would be overkill
If I want to know something about it I would just ask here
If you don't see us talking about stuff then we aren't working on stuff rn
Go poof
going thru my open PRs, anything you want me to do here @opal flare https://github.com/seiama/javaducks/pull/15 ?
remote: Permission to PaperMC/docs.git denied to olijeffers0n.
fatal: unable to access 'https://github.com/PaperMC/docs.git/': The requested URL returned error: 403
eh?
demoted 
finally
wut
no.
ready 4 review now, we can expand on it later https://github.com/PaperMC/docs/pull/386
i will review it
reviewing ur own pr smh
my work = Flawless
Hey, can someone apply this patch to the branch please. My Git has decided i'm not authed to push again
message.txt by @neon epoch: https://pastes.dev/aj9qfW8KbM
nvm, used the web ui...
did you like delete your ssh key from your gh account or smth?
no i haven't touched it lol, i had an issue with my laptop had the issue before, which i fixed somehow, and now my pc is doing it too :)
the action for this has been stuck for almost 2 weeks lol
Huh?
is paper multithreaded
cause im running it on my 6 core server and it's got the cpu at 98% util the entire time
#paper-help @bronze portal yes paper is multithreaded, it is. Please provide Spark report during those time in paper help channel https://spark.lucko.me/download
i found a typo in the docs:
"if" instead of "of"
docs != jdocs
If you want to, feel free to PR it 🙂
We have a patch for this kind of stuff you can add onto
FIX IT @still apex
@neon epoch fix it
Why is your name powercas
ask my friend from 8 years ago
i'm asking you
@twilit pivot which is better please and thanks <3
please do not ping staff members @neon epoch
@still apex please do not ping ollie
[@able]
no
yes
just to make sure, people should use teleport if they know that the chunk is loaded, otherwise teleportAsync?
@neon epoch
@drowsy zinc
Yes, and also that to note that if you call .get() on the CF, if the chunk is not loaded it will deadlock your server
cause it wont tp till next tick
done
A table?
@spice temple a site for remapping obfuscated stacktraces to mojmap would actually be great lmao
though it might also need fabric intermediary -> mojang
At some point I tried adding a toggle to https://shartte.github.io/minecraft-mapper/ to remap to mojmap instead of yarn, but I couldn't js
Doing that shit in the frontend is hard
Remember mini mapping viewer, that was a mess
So just some dum spring backend again that hooks into Lorenz is prolly easiest
Wait for just Mojang we can just use pro guard, they have a thing to deobfuscate, right?
Oh and paper had stuff too, right?
Paper has StacktraceDeobfuscator yeah
so we can throw an endpoint into the spring app we already have, either via copying that functionality or proguard
wasn't there such a website already?
how about no https://i.imgur.com/KtR0n9R.png
read it now
cas there's a dependency management page
The docs really just need more streamlining
it's a fairly common issue with the docs is that their followthrough (hehe) kinda sucks
and so you end up in a tizzy to do anything
Not saying it shouldn't
I'm saying that the docs really need rewriting to solve these type of flow issues where something is doc'd but in a weird place
imo at least a link or something should be added
no
yes
ok I see two volunteers 
I see 3

Nuh uh they arent your s...************
https://github.com/PaperMC/docs/issues/399 lol why is there like a million task lists @still apex
clicking on the add tasklist button just to fuck with ollie

add more...
let's not

snitch
shedaniel's linkie mappings page has it
Not stacktrace remappers though
I'm not going to manually type in class and/or method of multiple lines, multiple times there 
there is a stacktrace remapper in the picture?
oh only looked at the link, mfw it's an unnamed button
but the obfuscated Mojang mappings one also just keeps hard crashing 
The fabric to mojang one is working almost wonderfully though, thanks for linking it
Except nevermind, the fabric one is also half broken
Hello, dose anyone know how can I make when I jail ( THE JAIL COMMAND IS FROM someone he's can use the command's like anthor plugins commands?
can anyone help me please!!!???The jail plugin is from essentials !!!

Average #docs-website content
Nvm
@neon epoch i have a complaint
Ok
why can I not just paste in the paper config
also smh whoever removed thsoe options not opening a docs pr
@ cat U TOO
what?
eeerrrr
well, you see, quite simply
I am core team, bow down to my existence, or something
"see"
damn
someone review my pr and suggest a description
Someone write an action for paper to check if there is diff to the paper config patch and nudge them to check if docs changes are required 

I had done this at some point, but never actually implemented
it's posted in one of the staff channels. would have been mid 2021
iirc based around the old config system
you never did send it @young matrix :/ #paper-internal message
(also, apprently we are back to 2020's mini who leaks internals :D)
Outrageous 😂
i think it is very rude that i cannot approve my own pull requests
which one
both top ones
just merge without approval 
dn't think that's possible
someone should give ollie admin permissions on the org
just push to main
i can do that

tf how does that make any sense? able to push to main but not able to merge pr without approval?
ah
you lied to me 
he does that
I don't like this powercas
why is Recipes called Recipes and not Recipe API like most of the others
naming isn't consistant
ur not consistent
Some plugins that you install are not a typical plugin, but a library. These are installed like plugins,
however tend to offer few user-facing features and are relied upon by other plugins for their
functionality. If you disable a library, plugins that depends on it will not work properly. Common
examples of these libraries are ProtocolLib, Vault providers, permission plugins, etc.
better?
plugins that depend on it
thx
Not all plugins you install are standard plugins; some are libraries. These libraries behave like plugins and are essential for the functionality of other plugins.?
that you
ultimately doesn't matter
nuh uh
wow not even waiting on a review
CI passed
That’s crazy
unless you are gonna review a lockfile
sure

What's the status of https://github.com/PaperMC/docs/pull/326?
failed (jk)
I have some local changes. Generally input of others wanted. The gist im taking the info from still has some values I’m not sure if we want to take 1:1
Like this https://gist.github.com/Earthcomputer/2296da33b8cc91dba81b48103c0e1fe3#considerations-1 what value we take for this?
It says “not necessarily to vanilla“ do we want this or not?
Putting it into an extra section at the botom might be fine, the watchdog one can be omitted
Alright, I will update it 1:1 like in the gist and add an extra section and bottom for such things
I’ll just come here if I have questions
also paper-global/unsupported-settings.allow-grindstone-overstacking was removed at some point afaik
yeah, vanilla fixed that themselves
this still looks ugly https://i.imgur.com/zgS7i7Y.png
pr or shut up
yes
where is it even doing that
you just have to change the value of --docusaurus-highlighted-code-line-bg
ok I updated the vanilla changes PR to the latest gist. Also added a little text. LMK what you think.
I will take a look later
should #paper-dev message be turned into a docs page?
would be super nice to have instructions for hotswapping
https://docs.papermc.io/paper/dev/userdev probably needs to be updated since we are using mojang mappings at runtime?
the caution about using jmp's lib for reobfuscating reflection feels outdated, should just use mojang names always
I mean, there is a whole section about 1.20.5+ changes there
right, but it seems too combined together
cc #408, why's that called the minor version?
I come from semver land, where it's called patch
In Minecraft terms it’s minor version since they never change the 1.
MC isn't semver, but craftver. 😄
what if they incremented the 1 though
A major Minecraft version is also only changing minor version number
The entire community generally considers them to be minor releases
yeah scorp
applying semver terminology when it's not semver is just cope
I mean I already applied it on the docs' automatic versioning scheme :p
since that deals with semver'd velocity
Do we want to have the old sentence there or not?
it's fine imo
Hello guys,
the Item Command Converter is awesome. I have hundreds of datapacks and with this tool I have saved so many time
https://docs.papermc.io/misc/tools/item-command-converter
But I have found an bug on this converter:
If you try to convert potions with potion datas, the converter don't convert the old data to the new data:
give @a minecraft:potion{CustomPotionColor:100000000,CustomPotionEffects:[{Id:11,Ambient:false,ShowParticles:true,Duration:2000},{Id:5,Ambient:false,ShowParticles:true,Duration:2000},{Id:26,Ambient:false,ShowParticles:true,Duration:2000},{Id:12,Ambient:false,ShowParticles:true,Duration:2000},{Id:13,Ambient:false,ShowParticles:true,Duration:2000},{Id:3,Ambient:false,ShowParticles:true,Duration:2000},{Id:22,Amplifier:5b,Ambient:false,ShowParticles:true,Duration:2000}],display:{Name:'{"text":"Magic potion","color":"gold"}'} }
The result is this:
give @a minecraft:potion[minecraft:custom_name='{"text":"Magic potion","color":"gold"}',minecraft:custom_data={CustomPotionEffects:[{Ambient:0b,Duration:2000,Id:11,ShowParticles:1b},{Ambient:0b,Duration:2000,Id:5,ShowParticles:1b},{Ambient:0b,Duration:2000,Id:26,ShowParticles:1b},{Ambient:0b,Duration:2000,Id:12,ShowParticles:1b},{Ambient:0b,Duration:2000,Id:13,ShowParticles:1b},{Ambient:0b,Duration:2000,Id:3,ShowParticles:1b},{Ambient:0b,Amplifier:5b,Duration:2000,Id:22,ShowParticles:1b}]},minecraft:potion_contents={custom_color:100000000}]
is it possible to fix this bug?
No, your datapack was out of date. Since 1.20.2 that field was called custom_potion_effects not CustomPotionEffects
yeah, confirmed that as well
oh ok.
see pr
Do we not have docs for all possible paper-plugin.yml fields?
paper_-plugin_.yml
we have whatever owen wrote, more like a diff on top of plugin.yml than a per-field description
we should throw together a complete schema
I'm not a huge fan of the bukkit plugin yml page, I'd rather it looked like the configuration pages, structured likje the file with openable descriptions
although... its a lot more description, so idk
For most of it it's enough to just know which fields exist in a concise way
can look at the json schema kinda, those are annoying to read tho
it's only the dependencies that need a lot of info (or even any at all for most), which the field description can just redirect you down to
Is there anything to read json schema into some readable description?
otherwise something a lot less detailed is still fine, but there needs to be some kind of overview in the docs themselves
Atlantis had something
A new thing ohhh
I don't think this example here is sh compatible? At least with sh script.sh
I said that the install procedure was fine
force pushing over your branch to keep it at one commit is evil
makes it hard for me to incrementally review your changes
it was a lockfile and a package.json
I'm talking in general
The nametagedit plugin does not work on my server, what other version can I use, my server is paper-1.20.6
ask their support, this is not the right channel
no idea, use a search engine
bonk
Hey, is there like a web page with a list of plugins that are cross-play compatible? I have a friend on Playstation and all others on PC but has both java and for windows users. Any tips and or advice would be greatly appreciated as I am extremely new to server setup
Wrong channel and any plugin that runs on a Java server will also work on the Bedrock player? Maybe not if there's some specific difference only Bedrock players can access
I am trying to set up valhallammo plugin but I'm having issues with the resources not working. Was looking for any kind of help but whatever I'll leave I guess
Yea, we don't document stuff that has nothing to do with us in a sense
anything that relies on resource packs will not work, as they both use two different systems there
(and then theres the differences in terms of how those both handle interactions, etc, geyser does a good job of getting "close", but, for the most part it is still a "glhf" sorta deal)
Ok, thanks.
can pencil hide versioned docs? or at least make them show last?
i'm surprised it's not already doing that
I will not be at a computer realistically until the end of july
But theoretically you can add facets somewhere here https://github.com/e-im/pencil/blob/main/src/main/java/me/sulu/pencil/commands/Docs.java
<@&748618676189528155>
(666ab9f4bb3b0c6d8b810299) // @orchid sleet (@.shauryakumar / 1023222367692001371) has been banned by @neon atlas (202850073812402177)
Reason: Quick-banned for sending a message in #docs-website
@neon epoch
Yes Cas
@burnt ice
@neon epoch bag my fries
chips
No it’s fries
cloudflare most likely, looking into it right now
for context, vercel is apparently ending their sponsorship program

@still apex you have time to check https://papermc-docs.pages.dev/ and make sure it works as expected?
is fetch-depth set to 0?
Converter doesn't work I believe
not an option on cloudflare pages
the last updated commit is 'broken'
yeah item converter is broken
ah wait that's cors
rest seems to work besides the status but guessing that's because of what granny said
in the process of fixing
maybe could use the cloudflare pages github action? https://github.com/cloudflare/pages-action
going to be, yeah
can't cloudflare pages do that w/o the action?
.
We have to do a direct upload
.
ah
And use GitHub as the CI for full depth
didn't read that
smh
i was doing my duolingo
no multitasking allowed
everything else seems to be working as expected, just those two things
can someone do a PR to docs to yeet the vercel analytics, sponsorship stuff, etc? and reference my ticket
does cloudflare have an alternative for vercel analytics?
They do
Well they have a few. By default you can enable analytics on your pages project or integrate analytics engine for more in-depth tracking.
@lilac edge are you doing this or can I
L Vercel
quick someone branch name
"hell"
the _ files need to be in the output dir
so inside of build
You either gotta drop the action to install pnpm or drop it from the packageManager in the package.json
Ahh
the build folder gets cleared on each build and is ignored by git
correct
need to copy them in prior to deployment
so just edit the github actions workflow I added, and before the last step, just cp those two files into the build dir
Damn that client takes a fat minute to compile
that's better
yippee
What's the replacement for env.VERCEL_ENV
Can't find one in cloiudflare docs
unless you add a custom one
Did vercel already publicly communicate this? I couldn’t find any resources in my 2 minutes search.
Your 100% off discount is expiring on June 14. To give you time to handle this transition, we will automatically enroll your team into a $300/mo discount for the next 6 months, starting on June 14 and ending on December 14.
via email
https://vercel.com/guides/can-vercel-sponsor-my-open-source-project
currently paused
fucking one day notice
they can fuck off
Ah I thought they mean new applications are paused
the site should probably build with node 20 rather than 18 considering that's what's used everywhere else
Always those shit promises
vercel was configured to use 18
I matched that
the github workflow likely needs changing to properly to PRs etc
I'll do that here
Probably also need to actually tell cloudflare that it's a preview somehow somewhere
I would ponder if this is a case of, "we need to renew", but, idk what the entire thing is
but, this sorta thing is exactly why I was eary on hosting our stuff elsewhere in the first place
Vercel is helping it's demise https://i.imgur.com/ILETUpW.png
weeb detected
wat
||"my dear friend prettier" - more of a self report joke, I guess||
.yaml is correct
thanks for fixing
Resource not accessible by integration
eat poo github actions
lol
"this action cannot be used if PR is raised from forks."
yeah saw that too
pushed
if you want to rebase again
bonks @drowsy zinc
bonks @still apex
leave my step names alone!!!!
he held me at gunpoint
lol
only thing I want for christmas is node 20
power can bump to node 20
🍓
those comments be looking good on discord
yeah I stole the one from the cloudflare-pages app
it looked nicer
on discord it looks trash
on github it looks nice
github is what matters
yeah
well that's fun
RequestError [HttpError]: No ref found for: hell
does it not work for PRs then?
ah
hm
gitHubToken value of publish step is problematic
it should be set for PaperMC/docs, but not for PRs
add 2 steps with an if statement? lol

i don't like merge conflicts
@still apex you can sleep now
beautiful preview url
Shaved a whole 20 seconds off the client compilation by upping to Node 20.
uh
uh?
Kinda seems like the official action isn't maintained as much
this is jank
who wants to write a better version of https://github.com/cloudflare/pages-action
that actually works for PRs
Could just ping Walshy
who
He's a cf employee
cloudflare person
He is the top contributor for that action
top contributor there
hi @main orbit! the action works good except when it doesn't! pull request support is really hacky! can you help at all?
tada
otherwise for now I think I'll just merge your PR
and we can see what still needs fixing
PAPIER
oh right
ollie is going to wake up and see all of this and smack all of us with a broom, @still apex @drowsy zinc
i'll smack him back

Great job stealing the spotlight.
it broken
owen’s
its the same thing
Don't forget to uh unlink the project on Vercel.
docs. is a cname to the pages link
how is the work going with 1.21 engine?
Updates to Paper do not have any sort of estimate for when they release, ever. Any and all updates will arrive when they are ready, and the only thing to do is wait for them patiently along with everyone else.
yeah i see
but i am not programmist and i dont understant on what stage is the process
Last updated on Apr 11, 2024 by Matouš Kučera in 416d78b
that's right, no?
Site loads soooo much faster
well, that was worth it
oh shit you can really tell with the category icons not jumping
PR previews are broken, but that's because the action is janky atm
well, website previews
but yes, not as big of a thing
website does not change often compared to docs
yum
yes
it's more tricky
because of the legacy papermc.io/api/ and papermc.io/repo/ routes
that is doable inside of the LB afaik
We just need to move the other stuff into the infra to do that nicely
aren’t those routes supposed to be removed in some time
good time to break them 
The sad reality is that they're still used
killing /api will be much easier to justify than breaking /repo
redirect on cloudflare ?
not until you break it 
dunno if that works
redirects tend to break stuff
we can just put the blame on owen
they’re supposed to change it anyway
Well, yea, ideally we however do put out final warnings or something before doing that thing
Give em a month or they start paying the Vercel bill.
@ everyone old endpoints may or may not work anymore starting tomorrow at 8:33am
the site isn't on vercel
@here Im making a fork of paper website and i was wondering if its using umami for analytics or any for that matter and if how to implement
Please do not try to ping everyone or here for support. Plus this is not the correct channel.
We don't use any analytics other than the basic CF stuff which requires no integration
I'm no longer on that team so the action isn't really supported anymore
This fork seems to be more actively maintained: https://github.com/AdrianGonz97/refined-cf-pages-action - may be worth trying that out
Ollie talking to himself https://i.imgur.com/FsbK2xr.png
@neon epoch does it make sense to create a branch for 1.21 so people can make pr's for that
if you have something in mind just add it and create a PR
I can if you want
@neon epoch didn't murder me yet!
It’s still loading
who is
riley broke production docs
I expected better for you
i told you
Why is "Players Have Permission By Default" like this https://i.imgur.com/oy7oJnT.png
is there something wrong with it?
A Sentence Like This Is Very Ugly
That wording is also dumb
granted by default
should just be like "defaults", and then false/op/true
ok someone else cna fix that too much brain power required
@vocal halo ^ Since you created the pr you understand the stuff
let me investigate
Not my wording. I just simply copied it.
https://github.com/PaperMC/docs/pull/354/files#diff-c1918a6c56d83f30dfb92c6ed6e99a4cbce45210971802a48d003bc2c8e4904eR120
ah so it's ollie's fault smh
i have little time to work on docs atm. I can change it when i have time whenever that is. I also need to finish the vanilla changes pr...
It’s not invalid English
you're invalid english
@opal flare do you have time to merge/review a pr that updates the current CF action to that apparently working one?
sure
Merged
docs favicon/project icon should match paper's for every june
how long will paper 1.21 will be out?
Updates to Paper do not have any sort of estimate for when they release, ever. Any and all updates will arrive when they are ready, and the only thing to do is wait for them patiently along with everyone else.
oh alr
You mean like that?
oh that action auto makes a comment
adding gitHubToken: ${{ secrets.GITHUB_TOKEN }} fixes it, I also added
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
```to the `with` section in actions/checkout according to their exmaple
not sure what the checkout does? Maybe run the action on the main repo instead of on the fork?
Ah can probably remove my custom comment stuff
what was the initial problem with the github token?
The original action broke if one was supplied for PRs from outside the root repo
ie, a fork
Can test if it works by updating an exisitng PR, I told ollie to test my first pr on #416
Works (:
sure
display in the footer the git hash (with a link to it) for both prod+preview
Something like this you mean? https://i.imgur.com/DyV7ffj.png
yup
Perfect
trying to have an icon there which doesn't show but properly has the text on the same line, if I remove it each thing is i'ts own line 
https://i.imgur.com/mqz4b8a.png
copyright: `Copyright © ${new Date().getFullYear()} PaperMC and Contributors. Built with Docusaurus.<br> <a href="https://github.com/PaperMC/docs/">PaperMC/docs</a> @ <a href="https://github.com/PaperMC/docs/commit/${currentCommit}">${currentCommit}</a>`,
vs
copyright: `Copyright © ${new Date().getFullYear()} PaperMC and Contributors. Built with Docusaurus.<br><Icon icon="material-symbols:commit" /> <a href="https://github.com/PaperMC/docs/">PaperMC/docs</a> @ <a href="https://github.com/PaperMC/docs/commit/${currentCommit}">${currentCommit}</a>`,
icon and make it 1% chance to show
icon 
no
with (not showing) icon tag: https://5f6c93c4.papermc-docs.pages.dev/
without icon tag: https://5d032f17.papermc-docs.pages.dev/
Is the commit footer something that should also be added to the website?
Just as an FYI for everyone requesting reviews, I’m in Barcelona until Thursday and not free until at least the Monday after :)





