pytype

A static type analyzer for Python code

Home
Developer guide
Workflow
Development process
Python version upgrades
Supporting new features
Program analysis
Bytecode
Directives
Main loop
Stack frames
Typegraph
Data representation
Abstract values
Attributes
Overlays
Special builtins
Type annotations
Type stubs
TypeVars
Configuration
Style guide
Tools
Documentation debugging

View the Project on GitHub google/pytype

Hosted on GitHub Pages — Theme by orderedlist

How to setup environment for previewing changes to documentation

The pytype documentation is in markdown format.

github uses jekyll to render these pages.

Prerequisites

Install/update ruby and bundler

ruby -v # should be greater than 3.0.0

If it doesn’t exist or is too old

sudo apt-get install ruby-full

Add path to your .bashrc

echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Install packages required for jekyll

gem install jekyll bundler webrick
gem update jekyll
bundle install

Start jekyll locally

cd docs # you'll need to be in the pytype/docs directory

bundle exec jekyll serve --watch

The --watch flag forces jekyll to look for changes to your source files and reload the server if it detects any changes.

You can view your webpages by navigating to http://localhost:4000 like http://localhost:4000/developers/index.html