The built-in calendar only supports Sunday as the first day of the week. A gentle soul, shady2k, has made a pull request that introuduces the option to change this.
The Original developer of the plugin hasn't introduced this change yet, and there is no activity since April so I'm not sure if this will ever happen. For this reason I decided to just use shady2k's version of the plugin.
Here is what I did in case anybody else is interested.
Note: I'm not a developer, if somebody has a better way to do it, please post it here, I just post this solutiuon because it's what worked for me.
Environment
In order to build in Windows, you need to install Node.js, for example in Windows I used:
choco install nodejs.install -y
If you don't use chocolatey, there are other ways to install it.
Dependencies
Install the siyuan dependencies with npm:
npm install siyuan
There is more information about plugin development here.
Build
Obtain the sources created by Shady2K:
Extract them in a folder on your machine, and go to that folder from command line.
Then you can compile with:
npm run build-only
It should look something like this:
Now you will find a file called package.zip
in that folder:
Install
First of all, I would remove the original Calendar Panel plugin from the Marketplace, I'm not sure if it will cause conflicts with the modified version.
Extract to <workspace>\data\plugins
under a folder called arco-calendar-with-first-day-of-the-week
or whatever name you prefer.
Inside of that folder, edit the plugin.json
file and modify the second line so it matches the name of the folder you use above:
{
"name": "arco-calendar-with-first-day-of-the-week",
[...]
}
I guess we could use the original arco-calendar
name for the folder so there is no need to rename the JSON file, but I'm not sure if an update on the original plugin will cause it to be overriden.
Enable
Open SiYuan, go to Settings -> Marketplace ("Trust" if you didn't enable plugins yet) -> enable the "Calendar Panel" plugin. You might need to restart SiYuan for the plugin Icon to appear.
Now you can go to the puzzle piece icon -> Calendar Panel
And select the first day of the week:
And now weeks will start on Monday! 🎉
Welcome to here!
Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.
Signup About