包含标签 mkdocs articles

MkDocs使用FontAwesome 图标

Material主题内配置启用 在 Material for MkDocs 中使用 FontAwesome 图标,可以通过配置和简单的 Markdown 语法实现。以下是具体步骤: 1. 安装 mkdocs-material 和 fontawesome 插件 首先,确保你已经安装了 Material for MkDocs: 1pip install mkdocs-material 如果还没有安装 fontawesome 的支持插件,可以通过以下命令安装 mkdocs-material-extensions,它内置了对 FontAwesome 的支……

Continue reading

部署MKdocs到Vercel

在线发布 我之前写过一篇 Deploying Static Website MkDocs to Netlify ,当时是部署到netlify,本篇介绍MKdocs部署到Verce。 部署到Vercel 在GitHub/gitlab上新建项目,上传你的站点文件。 在项目文件夹下,新建package.json,写入以下内容: 1{ 2 "name": "mkdocs", 3 "version": "1.0.0", 4 "private": true, 5 "scripts": { 6 "dev": "mkdocs serve", 7 "build": "mkdocs build……

Continue reading

Mkdocs增加Giscus评论系统

Mkdocs-Material默认支持Giscus评论系统,官方也给出了教程。不过仍然需要手动配置一下。Giscus是一个基于GitHub Discussion系统的评论模块,用户可以使用GitHub账号登录,支持markdown格式评论,界面简洁美观。 本部分可以参考:Adding……

Continue reading

Netlify部署Mkdocs样式异常处理

问题 原来使用的wikitten站点有点太老了,样式也不太喜欢了,就想更换下比较新的wiki程序,研究对比了一些程序,发现Mkdocs还是比较喜欢的,就使用Netlify部署个测试下。不过测试发现在本地运行的很好的程序,部署到Netlify后发现样式显示异常,通过查看源代码,发现内……

Continue reading

Mkdocs增加百度统计

获取统计代码 百度统计站点申请参考: 申请百度统计站点帮助 ,获取后的代码类似如下: 1<script> 2var _hmt = _hmt || []; 3(function() { 4 var hm = document.createElement("script"); 5 hm.src = "https://hm.baidu.com/hm.js?<站点ID>"; 6 var s = document.getElementsByTagName("script")[0]; 7 s.parentNode.insertBefore(hm, s); 8})(); 9</script> 将该代码保存到mkdocs新建的项目docs/j……

Continue reading

Deploying Static Website MkDocs to Netlify

Set up MkDocs 🛠️ To use MkDocs, you’ll need Python 3.6+ installed on your system, as well as the Python package manager, pip.While you install MkDocs, you should also pick a theme. Here, we picked the material theme. Thanks to Martin Donath! Installation 1$ pip install --upgrade pip 2$ pip install mkdocs 3$ pip install mkdocs-material 4$ pip install pymdown-extensions 5---> 100% 6Successfully installed mkdocs, mkdocs-material Create New Site Now we are ready to create new project, run the blow command to create a new project. 1$ mkdocs new website 2---> 100% 3INFO - Creating project directory: website 4INFO - Writing config file: website\mkdocs.yml 5INFO - Writing initial docs: website\docs\index.md There’s a single configuration file named mkdocs.yml, and a folder named docs that will contain your documentation source files. 1| mkdocs.yml 2| 3\---docs 4 index.md Preview your Site MkDocs comes with a built-in devlopment server that lets you preview your website as you work on it.……

Continue reading

How to deploy mkdocs on common platforms

There are web services that you can quickly build and deploy with MkDocs.Do you know of web services that have not been added here? Please add! Cloudflare Pages https://pages.cloudflare.com/ Cloudflare Pages includes Mkdocs in their Build configuration:\ https://developers.cloudflare.com/pages/platform/build-configuration Add the following files to your MkDocs: requirements.txt:\ Please include the required pip package 1mkdocs 2mkdocs-bootswatch 3mkdocs-minify-plugin runtime.txt: You can also refer to this:\ https://github.com/fu-sen/CloudflarePages-MkDocs Cloudflare Workers (Workers Site) https://developers.cloudflare.com/workers/platform/sites Edit wrangler.toml: After that: 1mkdocs build 2wrangler publish Docker-based web service (Google Cloud Run, Fly.io, etc.) Google Cloud Run: https://cloud.google.com/run Fly (fly.io): https://fly.io/ Caddy is adopted as the Web server on the assumption that the Web will be open to the public.\ You should not use mkdocs serve for public release! Dockerfile: 1FROM python:3-slim as mkdocs 2COPY . . 3RUN pip install --no-cache-dir -r requirements.txt 4RUN mkdocs build 5FROM caddy:alpine 6COPY --from=mkdocs……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI Alpine Android Anpic Ansible Apache Apm Apparmor Appfog Apr Apt-Get Aria2 Array Atlassian Atop Audit Awk AWS Awstats Axel Azure Backdoor Backup Bamboo Bash Bat Benchmark Bigdata Bin Bind Bitwise Blockchain BMC Book Bootstrap Brocade Bsd C1000 Cache Capistrano Catlog CDH5 Centos Centos7 Chatops Chattr Check_mk Checkinstall Cisco CL210 Clickhouse Cloud Cloud-Desktop Cmdb Cms Cobbler Collectd Comm Compress Confd Conver Corosync Cpu Crontab Crunchbang Css Curl C语言 Date DDOS Decode Dell Desktop Devops Df Dhcp Diff Diskpart DISTINCT Django DNS Docker Dos2unix Dpkg Drupal Duckdb EKS ELK Etcd Excel Fail2ban Fastcgi Fdisk Fiddler Find Firewalld Flask Flvtool Ftp Function Fuser GCP Geek Ghost Gin Git Github Gitlab Glances Glusterfs Go Godaddy Golang Google Gooupadd Grafana Graphviz Gravatra Grep Grub2 Hadoop Haproxy Hardware HBA HCIE Heartbeat Helm Hexdump Hhvm History Hotspot Html Http/Html/Web Http/Html/Web Httplogs Https HttpWatch Huawei Huaweicloud Hugo IBM Icmp Iconv Ifconfig IIS InfluxDB Ingress InnoDB Inotify Iopp IOS Ipmitool Iptables Iredmail Iscsi Isito It-News Java JavaScript Jdk Jenkins Jinja2 Jira Join Joomla K3s K8s Kdump Keepalived Kernel Kingate KVM Lamp Last Leetcode Lib Linux Linux高级篇 Ln Ls Lsi Lsof Lvm Lvs Mac Mail Man Mark Markdown Matplotlib Maven Memcached Microservice Mimikatz Mkdocs Mkpasswd Mmonit Mod_jk Mongodb Monit Monitor Mono Moodle Mosh Mount Mplayer Mpm Mrtg Mtr My.cnf Mysql Mysqlbinlog Mysqld_multi MySQLdb Mysqldump Mysqlhotcopy Nagios Nc Nethogs Netlify Nexus Nfs Nginx Nmon Nocatlog Node.js Nrpe Ntfs Ntop Ntp Obs Ocr Open-Falcon Openbox Opencv Openldap OpenResty Openssl Openstack Oracle Oswatch Paas Pacemaker Pam Pandas Parted Pcp Pcre Pdf Percona Perl Pexpect Pgrep Php Php-Fpm Ping Plsql Develope PM Postfix PostgreSQL Powershell Prettify Proc Prometheus Puppeteer Pushd Pwgen Pxe Pyecharts Python Python模块 QoS Radmin Raid Rdesktop Read Redhat Redis Redmine Regex Rh134 RH318 RH442 RHCA RHCE Rhel7 Rhel8 RHEV Rm Rman Rootkit Route Rpm Rpmforge Rrdtool RSA Rsync Rsyslog Safe Saltstack Samba Scapy Screen SecureCRT Sed Selenium Selinux Seo Seq Session Set Shc Sheepdog Shell Shopt Sitemap Skydns Smokeping Snffier Snmp Socket Soft Sort Spider Sql Sqlserver Squid SRE Ss Ssh Sshpass Statuscode Strace Strings Su SublimeText2 Sudo Suse Svn Sysbench Syslog-Ng Sysstat Systemd T Tar TC Tcpcopy Tcpdump Tech Telecom Telnet Tencentcloud Tengine Test Testlink Threads Time Tmux Tomcat Touch Tr Tsar Twisted Ubuntu Udev Ulimit Unix Unixbench User-Agent Useradd Varnish VBA Vbs Vercel Vi Vim Visudo Vmstat Vmware Vnc Voice Vpn Vscode Vsftp Vsftpd Vue Watchdog Web Webcam Webistrano Wget Wiki Windows Wol Wordpress Workshop Wsl X-Windows Xampp Xcache Xmllint Xtrabackup Yule Yum Zabbix Zeromq Zip Zonetime Zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta