Material for MkDocs: Full Tutorial To Build And Deploy Your Docs Portal

  Рет қаралды 7,566

James Willett

James Willett

Күн бұрын

Пікірлер
@james-willett
@james-willett 2 ай бұрын
🧐 Transform your documentation with MkDocs and the Material theme! Follow this guide to publish your portal online in no time. Want more content like this? Let me know, and I'll dive deeper in future tutorials!
@gabrielpimentelgomes3195
@gabrielpimentelgomes3195 Күн бұрын
Great tutorial! Thank you for sharing your nice work
@VrejGaming
@VrejGaming 2 ай бұрын
One of the best MkDocs tutorials I have watched! Incredibly helpful, thank you!
@james-willett
@james-willett 2 ай бұрын
Appreciate that - thank you ! 🙏
@rijutsu
@rijutsu Ай бұрын
A quick note to say that I've spent the better part of the past three days using this video to build my own set of pages and I can't thank you enough. The presentation, the links, the code examples, the chapters/timestamps in the video, and just so much of this was wildly helpful. Thank you so much for your effort! :D
@james-willett
@james-willett Ай бұрын
Thanks for taking the time to write this comment. Lots more content planned ☺️
@lockdown50559
@lockdown50559 2 ай бұрын
Man, you made this video just in time for me! I think that you are an amazing presenter.
@james-willett
@james-willett 2 ай бұрын
Thanks - appreciate your feedback ☺️
@CrafterXD2000
@CrafterXD2000 7 күн бұрын
Really nice stunning video! Thanks a lot! 🔥🔥
@james-willett
@james-willett 7 күн бұрын
Thanks so much - appreciate it.
@mdlsvensson
@mdlsvensson 2 ай бұрын
Incredibly concise and well put together video. Thank a lot!
@james-willett
@james-willett 2 ай бұрын
Glad it was helpful!
@Daniel-ops
@Daniel-ops 2 ай бұрын
Thanks for the video James! just started with mkdocs to host my personal blog and loving it so far.
@james-willett
@james-willett 2 ай бұрын
Great to hear! Please share a link , would love to take a look
@tillcarlos664
@tillcarlos664 Ай бұрын
Wow, I love this video style. It's well edited and well spoken!
@james-willett
@james-willett Ай бұрын
Thanks so much for this feedback - highly appreciated.
@JohnnieWalkerGreen
@JohnnieWalkerGreen 18 күн бұрын
Thank You!
@shadow_1363
@shadow_1363 2 ай бұрын
Great video, very helpful!
@james-willett
@james-willett 2 ай бұрын
Glad to hear that! Thanks for letting me know :)
@gabrielbronzattimoro7953
@gabrielbronzattimoro7953 2 ай бұрын
That is an incredible content 🎉 Thank you so much for sharing this with us!
@james-willett
@james-willett 2 ай бұрын
Glad you enjoyed it!
@mreduar
@mreduar 2 ай бұрын
Super video! Thanks for this!
@james-willett
@james-willett 2 ай бұрын
Glad you liked it!
@AndreiKatin
@AndreiKatin Ай бұрын
Super
@eazygfx4815
@eazygfx4815 4 күн бұрын
what about customizing theme further than the basics (partial overrides, custom css which i've done) and then publishing it to gh pages
@mikeball4959
@mikeball4959 Ай бұрын
Superb video, thank you. When I get to the last step though I'm getting Page not found on the URL rather than the documentation. Any ideas?
@james-willett
@james-willett Ай бұрын
Check the GitHub settings , maybe you missed setting to the new branch ?
@RonenSigan
@RonenSigan 2 ай бұрын
How many levels can a ToC have (left pane navigation)? For example, can these amount of levels be supported: APIs -> Weather Forecast Requests-> Daily --> Centigrade Thanks
@james-willett
@james-willett 2 ай бұрын
Good question - I’m pretty sure you can nest multiple times. Make sure you enable “navigation.sections” in your config . See squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-sections
@kapanadze
@kapanadze Ай бұрын
❤❤❤❤❤
@hectormanuelsanchezgarcia9243
@hectormanuelsanchezgarcia9243 14 күн бұрын
These videos are great, thank you! this content is very good quality. Question: do you know how to implement authentication? like with Django maybe? this would be for a documentation site that's private to a company for example to have it private for team members only.
@james-willett
@james-willett 12 күн бұрын
Thanks for the kind words. Maybe try staticrypt? github.com/robinmoisson/staticrypt
@599mighty6
@599mighty6 Ай бұрын
I looked at your blog site and studied the source code of your site on your github for a while, and I didn't understand how you implemented the author info on the left and the back to index button in your post!
@james-willett
@james-willett Ай бұрын
I'm actually working on a new video that'll showcase how to setup a blog just like mine (but with more features). To answer your question, I think the author info is part of the Insiders program currently - see squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#adding-author-profiles I'll be sure to cover this functionality in my next video
@599mighty6
@599mighty6 29 күн бұрын
@james-willett thanks
@ApxuBbI
@ApxuBbI Ай бұрын
Virtual environment for python is created, so if your loaded files will reside in project folder, and wont clutter APPDATA (Windows) ?
@james-willett
@james-willett Ай бұрын
Yes, when you create a Python virtual environment inside your project folder, it will isolate all the installed packages and dependencies within that environment. This means that the files related to the virtual environment (e.g., Python executables, pip, and any installed packages) will reside in the project folder itself, and nott clutter global directories like APPDATA on Windows.
@abepeterson
@abepeterson 2 ай бұрын
What setting do we implement so every time I push to github it stops resetting my custom URL! I have been trying for weeks, I even added the CNAME.txt to the docs directory and still, when I do a push it drops the custom URL. The CNAME folder shows the URL, but no resolution unless I go to the repo github page settings and set it again.
@james-willett
@james-willett Ай бұрын
Sorry to hear you are having this problem. It's hard for me to diagnose without seeing your repo, but theres a few things you might want to try: 1. Ensure the CNAME File is in the Correct Location The CNAME file should be in your source directory (e.g., docs/) so that it gets copied to the root of the built site during deployment. 2. Modify Your GitHub Actions or Deployment Script GitHub Actions might be overwriting or exclude the CNAME file during each deployment. You can modify your workflow to ensure that the CNAME file is always included in the deployment. You can add a step to ensure that the CNAME file is copied into the build output before deploying, e.g: jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install dependencies run: pip install mkdocs mkdocs-material - name: Build site run: mkdocs build - name: Add CNAME file run: echo "yourcustomdomain.com" > ./site/CNAME - name: Deploy to GitHub Pages run: mkdocs gh-deploy --force 3. Check GitHub Pages Settings Check your repository's GitHub Pages settings, Go to Settings > Pages. Make sure that under "Custom domain," your custom domain is listed and saved. Hope that helps...
@yehorpererva9735
@yehorpererva9735 27 күн бұрын
Excellent tutorial. If there will be a next tutorial, could you please cover adding functionality to pdf export. Something like a plugin to add the "export to pdf" button for each page.
@james-willett
@james-willett 21 күн бұрын
Thanks for the great suggestion. I've added it to my list and I'll look to cover it in a follow up video.
@soymadip
@soymadip 2 ай бұрын
i wanna put the docs in a docs branch and wannna deploy from there. is this possible?
@james-willett
@james-willett Ай бұрын
Yes its possible. By default, MkDocs uses the gh-pages branch for deployment. However, you can change this behavior by specifying the remote-branch option in the mkdocs.yml configuration file or by passing it as a command-line argument. For example, if you want to deploy from the docs branch, you can run: mkdocs gh-deploy --remote-branch docs Make sure to also update the branch in the GitHub settings when you are configuring GitHub Pages
@eazygfx4815
@eazygfx4815 4 күн бұрын
Not sure if it has changed but for windows the commands for python are: python --version python3 --version
@Jopcopin
@Jopcopin 12 күн бұрын
10/10 😎
@neo-mashiro
@neo-mashiro Ай бұрын
Thanks for the great video, this is really helpful. For the Github Actions though, I don't think the caching step is set up correctly because the ".cache" folder just doesn't exist. If you jump into the action logs, you will see something like this: Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
@james-willett
@james-willett Ай бұрын
Thanks for commenting. I think the ".cache" folder gets created earlier in the video when we did `pip install `or `mkdocs build`
@ousseynoungom9937
@ousseynoungom9937 14 күн бұрын
short video with all you need to know to start, congrate
@james-willett
@james-willett 12 күн бұрын
Thanks!
How To Create STUNNING Code Documentation With MkDocs Material Theme
16:10
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 112 М.
Don't Use Confluence for Technical Documentation
9:05
OutOfDevOps
Рет қаралды 6 М.
Use Obsidian (BEST Markdown editor) for note taking and tech docs!
17:56
Christian Lempa
Рет қаралды 390 М.
Modern Python logging
21:32
mCoding
Рет қаралды 209 М.
UV for Python… (Almost) All Batteries Included
17:35
ArjanCodes
Рет қаралды 80 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 207 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.