包含标签 mkdocs articles

部署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 AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http 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 mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish 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