File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,14 @@ jobs:
3838 uses : actions/setup-python@v4
3939 with :
4040 python-version : ${{ matrix.python-version }}
41- - name : Install pygame-ce
41+ - name : Generate the pygame-ce documentation
4242 run : |
4343 python -m pip install --upgrade pip
44- pip install pygame-ce --pre
45- - name : Clone and move docs
46- run : |
44+ pip install sphinx
45+ git clone https://github.com/pygame-community/pygame-ce.git
46+ cd pygame-ce
47+ python setup.py docs
48+ cd ../
4749 python utils/generate_docs.py
4850
4951 # Build website
Original file line number Diff line number Diff line change 66you managed to run this very file, please discard your changes and
77do not do it again.
88"""
9- import pygame
109import shutil
1110import os
1211
1312
1413if "__main__" == __name__ :
1514 target_directory = os .path .join ("public" , "docs" )
16- docs_path = os .path .join (os . path . dirname ( pygame . __file__ ) , "docs" , "generated" )
15+ docs_path = os .path .join (" pygame-ce" , "docs" , "generated" )
1716 print (f"Found these files: { os .listdir (docs_path )} " )
1817 if os .path .exists (target_directory ):
1918 print ("public/docs exists found, deleting." )
You can’t perform that action at this time.
0 commit comments