Граф коммитов

27 Коммитов

Автор SHA1 Сообщение Дата
Paul McLanahan d4848f6c3b Change the `make docs` command to start an auto-build-reload server
* `make docs` does this using Docker
* `make livedocs` does this locally
* `make build-docs` just builds the docs using Docker
2021-09-13 10:24:56 -04:00
Paul McLanahan ec9d4d25a3 Add sphinx-autobuild for easier docs development 2021-09-09 18:05:07 -04:00
Paul McLanahan f0dd4ba11d Update CDN test running procedure, dockerize ssllabs-scan, and add README 2020-10-23 12:20:41 -04:00
Paul McLanahan 255e80cbfd Add TLS tests to the CDN move test suite 2020-10-23 12:20:41 -04:00
Paul McLanahan 14ac630636 Load Legal Docs from the database
Remove the git submodule \o/

Fix #8385 #5818
2020-08-05 17:14:18 +01:00
Alex Gibson 46fa44e8f0 Move front-end linting and tests to NPM scripts (Fixes #8479) 2020-07-17 13:49:58 +01:00
Paul McLanahan 0586abd6f2
Fix docker builds due to docker-compose issue 2020-04-28 11:04:21 -04:00
Paul McLanahan 3a1b5ce100
Make running locally in prod mode easier (#8777) 2020-04-27 15:38:07 +01:00
Paul McLanahan dda67bb833 Fix virtualenv creation in docker
The old way suddenly broke in that it no longer properly
included pip. This changes to the default recommended way
of creating a virtualenv in the Python 3.8 docs.
2020-02-10 19:01:31 +00:00
Paul McLanahan b9ab44302c Update Makefile to include stop and kill commands 2019-12-11 17:48:54 -05:00
Paul McLanahan a8114a786e Add Fluent L10n system and port the Mission page to use it
* Fix dict cache default timeout
* Add fallback strings and checking for translations in template
* Add ftl alias and ftl_lazy for use in py files
* Move git repos and add fluent to l10n_update
* Add percent_translated and required_messages to the l10n object
* Add management commands for converting en-US .lang file and templates
* Add command to convert en-US .lang file to .ftl file
* Using data from above command add a command that will convert a
template to use the .ftl strings
* Update the l10n_update command to update both external l10n repos
* Convert the /mission/ page to Fluent
* Add command to convert .lang translations to .ftl
* Copy en .ftl file when porting translations
  * Removes the original string hash comments as well.
* Add Fluent docs.
* Add indentation and key sorting to metadata JSON output
* Add FTL file linting command
* Update mission template for FTL and remove FTL specific template
* Set l10n cache to 10s when DEBUG=True
* Fix and add tests for get_l10n_path
* Fix some style mistakes in docs and code
* Support multiline group comments for required strings

fix #7725, fix #7822, and fix #7726
2019-10-28 16:46:11 +00:00
Stephanie Hobson e2b92147d1 Add json-ld strucured data (#7654) (#7871) 2019-10-23 10:41:15 +01:00
Josh Mize c253dc4368 Clean untracked directories as well as files in 'make clean'; fix #7866
https://git-scm.com/docs/git-clean#Documentation/git-clean.txt--d
2019-10-10 09:09:48 +01:00
Chris Beaven bf67e8bf34 Django 2.2 (#7196)
* Complete removal of nose test artifacts

* Update base requirements to Django 2.2 and python 3 compatibile packages
2019-07-03 02:24:42 -05:00
Josh Mize 809573699a Add `git clean -f` to `make clean`
Fix issue identified in #7028
2019-04-08 16:09:05 -04:00
Paul McLanahan 4a7ed2ec50 Add fresh-data and shell make commands
* `make fresh-data` will fetch the latest DB file and update the data from all external sources
* `make shell` will open a bash shell on the running app
* `make djshell` will open the Django shell on the running app
2019-02-07 15:43:34 +00:00
Paul McLanahan aedbcf65df Add ADRs to Sphinx docs (#6692)
* Install Sphinx markdown deps
* Configure Sphinx with markdown support
* Switch to RTD Sphinx theme for local too
* Fix a bunch of Sphinx warnings for docs
* Separate docs deps into a requirements file for RTD to use
2019-01-09 18:21:23 -06:00
Paul McLanahan 8aadb14198 Fix #5928: Run full assets build in PR tests
Circle can't create symlinks during a Docker build
for some reason >:( which means that we can't do a full
production build on Circle. The assets build step has now
moved into a step that is run in Circle so that an error
there will fail the build and also removes a step in the
build process.
2018-07-16 14:30:37 -04:00
Josh Mize dbdbac1418 Force git submodule update during "make submodules" (#5847) 2018-06-25 16:37:53 -05:00
Paul McLanahan d47972b8f7 Move install instructions and Makefile to mostly just pull (#5812)
Most developers won't need to build their own Docker images. Pulling
our pre-built ones from the Docker Hub will work perfectly for them.
This patch changes the install instructions to reflect this as well
as changing the majority of the Makefile commands to depend on pull
rather than build.
2018-06-14 10:41:07 -07:00
Paul McLanahan a8171c5784 Switch from django-pipeline to gulp tasks for asset processing (#5618)
* Move from django-pipeline to Gulp for static-assets

* Use Gulp tasks to compile less and sass
* Use Gulp tasks to concatinate files into bundles
* Use Gulp tasks to minify files for deployment
* Use Gulp tasks for development to watch for changes
* Use BrowserSync to serve development static files and refresh the
  in-progress page
* Update Docker setup to use multi-stage build
* Update Makefile to build and run the docker setup
* Update docs to recommend Docker-based development
* Update deployment and testing to also use the Makefile

* Add rebuild of SASS bundles when library files change

* Add an intermediate build directory just for LESS and SASS
* Avoid issues with ambiguous imports when .css and .scss in the same
  directory

* Set deployment docker image in git env var script
2018-06-07 10:52:53 -05:00
Paul McLanahan 8364aa313f Move docker scripts, envfiles, and groovy files 2017-02-22 16:41:19 -05:00
Paul McLanahan e8d6ca674b Cleanup bin dir and move run scripts to bin 2017-02-22 15:53:31 -05:00
Paul McLanahan a2cc3e9b2d Change how we do docker
* More simple and streamlined base image build file
* Use a builder image to decrease the size and security footprint of running containers
* Make demos more prod-like
* Add l10n for prod builds via docker commit
* Specifically include only those files required for the running site
* Tests in circleci now use the same docker build and test scripts
* Add lock for docker image building per git hash
* Add environment variable support to jenkins.yml
* Add headless and firefox integration tests to prod deploys
* Run integration smoke tests before deployment
2017-02-21 16:54:00 -05:00
Paul McLanahan 6c59f305b8 Deploy demos with Jenkins
* Disable circle demo deploy
* Add IRC notification to Jenkinsfile deployments
* Fix the deployment docs for new pipeline
2017-01-03 14:46:18 -05:00
Paul McLanahan 8e9726a446 Bug 1296646: Convert update_product_details_files command to use git repo
* Kept the data file validation just in case. Can be removed later.
* Add tests for update_product_details_files command
* Switch sync_all to use new product-details command
2016-10-13 09:58:03 -04:00
Paul McLanahan 103cd86a0d Run all python tests in docker in circleci 2016-10-05 11:16:55 -04:00