-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Website rework (duplicated) #2171
Conversation
Yeah I have no idea how to build this so I can't review it. Can you maybe add something to NUKE so I can just do |
Ah helps if I read, but yeah a NUKE job would be helpful. |
Build fails locally.
|
Btw can you make sure the URL paths are the same in the new site as the old site? i.e. each page is located at the same URL? Always frustrating when websites break this, and I try to avoid this where possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
i will try to do it |
unfortunately I can't do it, as the old website was being made with static files but i can try match 100% the routes with the static files directories if they are still not matching |
Rly sorry for the time gap, but now I'm back to review it. This is occurring because of an option on the |
I am not interested in reviewing a PR where the reviewer has to do work to get it into a mergeable state. |
Sry, i will try to fix the conflicts |
All conflicts are fixed now Also, do you already saw the website at runtime? |
Wasn't quite what I was after
And your non-NUKE script (which wasn't what was asked for) doesn't work:
I did manage to build it and will base my review on that, but note that in order to be accepted the website GitHub workflow needs to be able to run (test it on your own fork) and be able to run in GitHub Pages. Will review now. |
public readonly record struct ConnectionEvent(IInputDevice Device, DateTimeOffset? Timestamp, bool IsConnected); | ||
public readonly record struct KeyDownEvent(IKeyboard Keyboard, DateTimeOffset? Timestamp, Key Key, bool IsRepeat); | ||
public readonly record struct KeyUpEvent(IKeyboard Keyboard, DateTimeOffset? Timestamp, Key Key); | ||
public readonly record struct KeyCharEvent(IKeyboard Keyboard, DateTimeOffset? Timestamp, char Character); | ||
public readonly record struct MouseDownEvent(IMouse Mouse, DateTimeOffset? Timestamp, Vector2 Position, MouseButton Button); | ||
public readonly record struct MouseUpEvent(IMouse Mouse, DateTimeOffset? Timestamp, Vector2 Position, MouseButton Button); | ||
public readonly record struct MouseMoveEvent(IMouse Mouse, DateTimeOffset? Timestamp, Vector2 Position, Vector2 Delta); | ||
public readonly record struct MouseScrollEvent(IMouse Mouse, DateTimeOffset? Timestamp, Vector2 Position, Vector2 WheelPosition, Vector2 Delta); | ||
public readonly record struct MouseClickEvent(IMouse Mouse, DateTimeOffset? Timestamp, Vector2 Position, MouseButton Button); | ||
public readonly record struct JoystickDownEvent(IJoystick Joystick, DateTimeOffset? Timestamp, JoystickButton Button); | ||
public readonly record struct JoystickUpEvent(IJoystick Joystick, DateTimeOffset? Timestamp, JoystickButton Button); | ||
public readonly record struct JoystickHatMoveEvent(IJoystick Joystick, DateTimeOffset? Timestamp, Vector2 Value, Vector2 Delta); | ||
public readonly record struct JoystickAxisMoveEvent(IJoystick Joystick, DateTimeOffset? Timestamp, int Axis, float Value, float Delta); | ||
public readonly record struct GamepadDownEvent(IGamepad Gamepad, DateTimeOffset? Timestamp, JoystickButton Button); | ||
public readonly record struct GamepadUpEvent(IGamepad Gamepad, DateTimeOffset? Timestamp, JoystickButton Button); | ||
public readonly record struct GamepadThumbstickMoveEvent(IJoystick Joystick, DateTimeOffset? Timestamp, Vector2 Value, Vector2 Delta); | ||
public readonly record struct GamepadTriggerMoveEvent(IJoystick Joystick, DateTimeOffset? Timestamp, int Axis, float Value, float Delta); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this changed in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea...
will try to understand and revert
:; set -eo pipefail | ||
:; SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) | ||
:; ${SCRIPT_DIR}/build.sh "$@" | ||
:; exit $? | ||
|
||
@ECHO OFF | ||
powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these scripts, automation should be in NUKE instead. Don't want loads of random build scripts in multiple places in the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to make the website more scope closed, but if you don't want it's fine, i will implement the NUKE script in the root
# HLU Tutorials | ||
|
||
We're still working on our Windowing & Input High Level Utilities (HLU) tutorials! | ||
|
||
You can get the gist of how HLU works by reading through the [OpenGL tutorials](/docs/opengl/helloWindow) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docusaurus seemingly has the ability to have a parent have content in its own right e.g. see https://docusaurus.io/docs/migration and how when you click on "Upgrading" it has its own content, with the specific guides as pages in their own right.
This is meant to be a landing page i.e. when I click on "HLU" I want this page to show up, I don't want this to be its own entry in the menu bar.
This way we can likely preserve the URL, too i.e. this page is docs/hlu
@@ -0,0 +1,5 @@ | |||
# HLU Tutorials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this directory name to have no capitals.
**Ensure you have the [Microsoft Visual C++ Redisributables](https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170) installed!** | ||
|
||
**Ensure the underlying API is present on the system** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this been reformatted?
<img src={'img/xplatpromo.png'} draggable={"false"}></img> | ||
|
||
<div className={styles.item}> | ||
<span><FontAwesomeIcon icon={faTrowelBricks}></FontAwesomeIcon></span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a cog icon please
|
||
<p>Active and fun community;</p> | ||
<p>Quick answers and <span className={styles.channelLink}>help</span> channel;</p> | ||
<p>News and announcements</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>Active and fun community;</p> | |
<p>Quick answers and <span className={styles.channelLink}>help</span> channel;</p> | |
<p>News and announcements</p> | |
<p>Active community</p> | |
<p>Easy & quick answers to questions</p> | |
<p>News and announcements</p> |
<div className={styles.content}> | ||
<p>Contribute with:</p> | ||
<div className={styles.list}> | ||
<p>💡 ideas;</p> | ||
<p>⏫ suggestions;</p> | ||
<p>🐞 bug reports;</p> | ||
</div> | ||
<p> | ||
And the future of Silk.NET directly with the | ||
.NET team! | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div className={styles.content}> | |
<p>Contribute with:</p> | |
<div className={styles.list}> | |
<p>💡 ideas;</p> | |
<p>⏫ suggestions;</p> | |
<p>🐞 bug reports;</p> | |
</div> | |
<p> | |
And the future of Silk.NET directly with the | |
.NET team! | |
</p> | |
<div className={styles.content}> | |
<p> | |
Get answers to your questions, and participate in the development by discussing and/or contributing improvements. | |
</p> |
(or something along those lines)
|
||
favicon: 'img/favicon.ico', | ||
|
||
organizationName: 'dotnet comunity', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.NET Foundation
html[data-theme='dark'] { | ||
--ifm-background-color: #3B4252; | ||
--ifm-hero-background-color: #2E3440; | ||
} | ||
html[data-theme='light'] { | ||
--ifm-background-color: white; | ||
--ifm-hero-background-color: whitesmoke; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're applying the Nord colour palette can you please do so consistently. Here are all of the colours (i.e. darker tones to use instead of the defaults to contrast against the background)
Also can you make sure we're using purple accents instead of the default green?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will try to replace all the green colors that i've missed
Oh also where has the miscellaneous section gone (and the FAQ link in the navbar) - can we add this back please |
The Silk.NET website remade from scratch
As requested by Perksey, it now is build on Docusaurus. It style is completely made from scratch based on the current one (without templates this time 💀)
I'm sending only the source code. To generate the
build
folder just runnpm run build
.build/
isn't on.gitignore
because i suppose this folder is required to serve the application.As Docusaurus uses an routing system, it will generate 2 folders on
build
directory. anClient
an anServer
. I don't know how to solve the server problem and i expect another one can solve this issue (sry for delegate work).Some links may and WILL broke, it's proposal because i don't know the right routes until the compilation and setup of the website. When everything is ok i will back on it and resolve these links.
Here, a link of the source code on stackblitz. As it have full compatibility with Docusaurus, it's just open and wait to see a working preview. Try to explore the entire site and test responsivities because some things can change.
unfortunately, Docusaurus uses git history information to set doc page's author, so I'm the author of everything now lol. It can be solved only if the respective authors do some changes on their
.md
files.Any issues, questions or anything, pls comment here
Perksey-senpai pls accept my PR 👉👈😖