Publishing custom changes #7814
-
Hello, im not sure if this is documented somewhere but i've tried google, in here, youtube with different search options. (heavily modified css) I've followed the Theme development guide and i've changed the website a lot using So right now i've just pushed everything to the repo but the custom css (of the materials/ folder with every override etc in it) everything is in there. I did use the non-insiders version for this because i can't use the insiders repo and push it to the repository for everyone to be seen and grabbed. How do i prevent this? Currrently the website looks like this. It's a documenting page for a project of someone that im doing the web for, github is still fairly new to me and i dont think i can upload the Side question: Why does material use a font size of 125% on the html? Makes no sense and having to reset the html for the homepage made everything tiny. I've had to compremise and add calc in my css to scale my rems down from 125% to 100% using: Why isn't 1rem 16px by default? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello @A3Bagged, The section should be referred to only when somebody:
From the looks of it you want to maintain one documentation project, so theme development isn't relevant in your case, and an extra.css file with overrides should suffice.
You don't need any of the files from this repository inside your documentation project. Consider MkDocs and the Material theme as an application, which someone has to install separately, and execute with the custom changes you've made in your own documentation project directory. Instead of the theme development, your docs page should be the Publishing guide: Examples:
The same logic applies to the Insiders variant, which should be put in a private fork, and then you would give your docs maintainers access to the private fork, so that they can install it locally, and the same for your github actions which would install it during build. TBH I don't know if it would be easier to setup a GitHub organization or just give access to people to your private fork. Also remember to have a hard fork copy of the Insiders version as a plain GitHub fork would be removed once you lose access to the main Insiders repository. You can look at my auto-update GitHub actions which uses an access token to retrieve the Insiders data:
I also believe that
I'm not a webdev, so idk. Supposedly there is some math shenanigans to make it easier for subsequent changes / accessibility. |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow Thank you for your response, you're right im not looking for Theme Development. If im correct according to the Mkdocs documentation Mainly what i changed is the extra.css which live sin the
Im using the partials just like insiders did for the parallax, could be done with having everything inside This however doesnt need to be open to the public (same with if using any other insiders plugin etc)
That's what i done in this case, however the I will check with my friend since he knows a whole lot more about github. |
Beta Was this translation helpful? Give feedback.
Yes, if the changes require a rebuild in the first place. Have you changed any of the SCSS files?
You can look at the workflow files from the theme itself, as they do hold the Insiders files in the other repository, but the documentation build workflow is setup here in this repository and it fetches the files during the github action. But plea…