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

API调用实现华为云OBS对象的调用

对象存储由于具有高空间、低费用、可直接URL调用访问等特点,是最常见的存储方式之一。主流的云厂商都有相关的云服务,AWS的s3、Azure Blob stroage、GCP cloud stroage、华为阿里的OBS。在开启匿名访问后,任何人都可以通过对应的URL访问到对应的对象,所以出于安全原因,……

Continue reading

使用Correlation ID定位微服务问题

软件架构微服务化后,虽然软件间的耦合性更好了,不过在出现问题后,增加了定位问题的困难,所以就出现了 Correlation ID 来方便问题定位。首先我们看下关于 Correlation ID 在流程中的传输过程如下图:的定义描述。 The correlation identifier is a unique identifier attached to each request in architecture. The correlation ID is not an error number or code. Simply, it’s a GUID (globally unique identifier) that’s automatically generated for every request. There is no standard format for the correlation……

Continue reading

k8s helm安装redis

一、helm 安装 redis 通过 helm 安装redis的方法如下: 1[root@testcce-92497 ~]# helm install my-release oci://registry-1.docker.io/bitnamicharts/redis --set global.storageClass=csi-disk 2[root@testcce-92497 ~]# export REDIS_PASSWORD=$(kubectl get secret --namespace default my-release-redis -o jsonpath="{.data.redis-password}" | base64 -d) 3[root@testcce-92497 ~]# echo $REDIS_PASSWORD 4ejL6JhgNNs 5[root@testcce-92497 ~]# kubectl get pods 6NAME READY STATUS RESTARTS AGE 7my-release-redis-master-0 1/1 Running 0 2m41s 8my-release-redis-replicas-0 1/1 Running 0 2m41s 9my-release-redis-replicas-1 1/1 Running 0 100s 10my-release-redis-replicas-2 1/1 Running 0 62s 11[root@testcce-92497 ~]# kubectl get svc 12NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE 13kubernetes ClusterIP 10.247.0.1 <none> 443/TCP 8d 14my-release-redis-headless ClusterIP None <none> 6379/TCP 13m 15my-release-redis-master ClusterIP 10.247.153.87 <none> 6379/TCP 13m 16my-release-redis-replicas ClusterIP 10.247.3.245 <none> 6379/TCP 13m 这里默认安装的是 1 master 3 replicas 架构,这个可以从 artifacthub 网站……

Continue reading

k8s StatefulSet启用Redis Cluster搭建

一、安装和配置Redis 1、无数据持久化的redis 这里先根据启用一个最简单的 Redis 服务: 1apiVersion: apps/v1 2kind: StatefulSet 3metadata: 4 name: redis 5spec: 6 selector: 7 matchLabels: 8 app: redis 9 serviceName: redis 10 replicas: 3 11 template: 12 metadata: 13 labels: 14 app: redis 15 spec: 16 containers: 17 - name: redis 18 image: redis:latest 19 ports: 20 - containerPort: 6379 21 volumeMounts: 22 - name: data 23 mountPath: /data 24 volumeClaimTemplates: 25 - metadata: 26 name: data 27 spec: 28 accessModes: ['ReadWriteOnce'] 29 storageClassName: "csi-disk" 30 resources: 31 requests: 32 storage: 1Gi 启动登录后,会发现在/data 目录……

Continue reading

Huaweicloud helm安装PostgreSQL HA

在 《Huaweicloud CCE helm install Bitnami PostgreSQL》写了下如何通过helm部署单节点 PG 和 master/standy架构。但神奇的会发现 Bitnami 除了提供这个helm chart外,还有一个 PostgreSQL HA 的chart,两者之间有何异同呢? 一、PostgreSQL-HA 和 PostgreSQL Helm chart之间的差异 有两……

Continue reading

Huaweicloud CCE helm install Bitnami PostgreSQL

Bitnami is a company that provides pre-packaged software stacks for popular open source applications(Belong the VMware Sub-company). Here are some of the benefits of using Bitnami stacks: Easy to install and use Regularly updated with security patches and bug fixes Available for a variety of platforms Wide range of applications available Community support So we are install the postgresql to Huaweicloud CCE platform (A famous k8s commercial platform ) today . 1. Install the helm3 Note: we need install the newest version from helm official website , we cannot use the huaweicloud official document (the website offer the old helm version , there will be have the error Error: parse error at (postgresql/templates/_helpers.tpl:164): unclosed action) Install helm command like this: 1curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 > get_helm.sh 2chmod 700 get_helm.sh 3./get_helm.sh 4 5# or one line command like this: 6curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash 2.……

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