Giter VIP home page Giter VIP logo

docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Document the development

Description
Currently there is no clear documentation on how one can and should start developing this repository. There is no clear documentation on setupping the local development environment either. We should document what is the desired way to setup and start developing or testing the repository and its contents locally. For example, I had never developed our docs and the crucial setupping & testing command were provided in #68. If setupping and running is so easy that it only requires couple of commands, it should be quite trivial and documented as well.

@sjaks, Would you be interested in documenting the setup process or in general improving the documentation?

Information on Let's Encrypt generation / cron

Any information on what schedule/how often the certificate generation runs would be great. I migrated a production-ready site on a Saturday and now am left wondering if this is something that requires assistance from Seravo as the website is throwing an error Your connection is not private on browsers.

Even better would be the option to run Certbot through something like 'wp issue certificate'.

Man pages have some incorrect formatting

With man pages the double dashes in front of command flags are being converted to an en dash, a single character. This can cause confusion if a user is copying flags or example commands straight to their terminal.

Under wp-test-whitelist man page we have two examples. They are formatted like this when copied:

wp-test-whitelist –add “https://example.com/favicon.ico 404 (Not Found)”

wp-test-whitelist –add “.*example\.com/mylibrary\.js.*404.*” –regex

The add and regex flags don't have double dashes in front of them but instead the en dash. This seems to be happening on any man page with any occurrences of double dashes.

Update Vagrant installation instructions

Instructions in https://seravo.com/docs/development/how-to-install/ don't seem to be very up do date. Vagrant >= 2.2.7 supports VirtualBox 6.1 and I saw no performance issues using it.

Some things to note:

  • Latest Vagrant and VirtualBox work together
  • Latest Vagrant not available even in Ubuntu 20.04 LTS so instructions maybe needed
  • Old versions of https://github.com/Seravo/wordpress Vagrantfile don't work at all with the latest Vagrant

Was there reasons to recommend VirtualBox 5.2 other than incompatibility of 6.1 and slowness of 6.0? Should we start recommending VirtualBox 6.1?

Move from depreciated redcarpet to kramdown

When I pushed to this repo I received an email from github:

The page build completed successfully, but returned the following warning for the gh-pages branch:
You are currently using the 'redcarpet' Markdown engine, which is no longer supported by GitHub Pages and may cease working at any time. To ensure your site continues to build, remove the 'markdown' setting in your site's '_config.yml' file and confirm your site renders as expected. For more information, see https://help.github.com/articles/updating-your-markdown-processor-to-kramdown/.
For information on troubleshooting Jekyll see:
https://help.github.com/articles/troubleshooting-jekyll-builds
If you have any questions you can contact us by replying to this email.

Evaluate current use of Ruby/Jekyll

Our current seravo.com/docs has served us well, but it might need a structural upgrade.

Biggest annoyances at the moment:

  • Pages are not easy to render locally, the experience is much more archaic than e.g. compared to sites that use Hugo
  • Instead of every article being a post with a date, they should be dateless pages so the "information architecture" would be correct.
  • Our man pages are not part of the docs and there is no easy way to append them there.

I have been looking at how nice the Pydantic docs look like, and they have a built-in search (just like we need) with some additional features, and is build using Python and all build code and Github Actions are available publicly.

Include man pages in search

As of today we now have the man pages included in seravo.com/docs and that is a great leap forward 🚀

There are however some details that might need to be addressed. For example, currently the search feature does not extend into the contents of the man pages.

Demo:

image

image

Getting real_ip from Cloudflare

Background: I did check the Seravo nginx and the module is installed: --with-http_realip_module. I then added the configuration from Cloudflare, but it's reporting (what I think is) the Seravo's internal reverse proxy as origin IP. In this case it was 172.17.42.1.

Solution:
You have to add an additional line to your custom nginx config: set_real_ip_from 172.17.42.0/16; which will also look up the CF-Connecting-IP header on all requests coming through that rev proxy.

Please advise if it's necessary to add other subnets to the config, but here it is in case you want to add to docs:

# - Seravo
set_real_ip_from 172.17.42.0/16;

# - IPv4
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;

# - IPv6
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2c0f:f248::/32;
set_real_ip_from 2a06:98c0::/29;

real_ip_header CF-Connecting-IP;

Convert _posts to pages

E.g. _posts/<date>_<pagename> to eg. category/something/feature.md

This would be a cleaner structure. Current date based blog stucture is useless in the seravo.com/docs documentation reference.

Update PHP docs

The page https://seravo.com/docs/configuration/php7-hhvm/ has "PHP 7" in the title. Now with PHP 8, the title should be just "PHP version" or something. Also it would be better if the URL was https://seravo.com/docs/configuration/php-versions/ (and with the old URL redirecting to the new one to avoid link rot).

Naturally the page itself also needs to be updated to include PHP 8 and drop PHP 7(.0). While 7.2 and 7.3 continue to be available, the page should clearly state that PHP 7.4 is currently the recommended version everybody should be using.

A link to https://www.php.net/supported-versions.php would also nicely complement it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.