update Makefile to generate documentation
This commit is contained in:
		
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							@@ -13,6 +13,9 @@ clean-install:
 | 
				
			|||||||
	rm -fr $(NODE_MODULES)
 | 
						rm -fr $(NODE_MODULES)
 | 
				
			||||||
	rm -fr $(VENV)
 | 
						rm -fr $(VENV)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					html:
 | 
				
			||||||
 | 
						$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install-db:
 | 
					install-db:
 | 
				
			||||||
	psql -U postgres -f fittrackee_api/db/create.sql
 | 
						psql -U postgres -f fittrackee_api/db/create.sql
 | 
				
			||||||
	$(FLASK) db upgrade --directory $(MIGRATIONS)
 | 
						$(FLASK) db upgrade --directory $(MIGRATIONS)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,3 +25,9 @@ COV = $(VENV)/bin/python-codacy-coverage
 | 
				
			|||||||
# Node env
 | 
					# Node env
 | 
				
			||||||
NODE_MODULES = $(PWD)/node_modules
 | 
					NODE_MODULES = $(PWD)/node_modules
 | 
				
			||||||
NPM ?= yarn
 | 
					NPM ?= yarn
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#Sphinx Docs
 | 
				
			||||||
 | 
					SPHINXOPTS    ?=
 | 
				
			||||||
 | 
					SPHINXBUILD   ?= $(VENV)/bin/sphinx-build
 | 
				
			||||||
 | 
					SOURCEDIR     = docs/source
 | 
				
			||||||
 | 
					BUILDDIR      = docs/build
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user