Skip to content

Commit

Permalink
Remove built assets up to date check (#443)
Browse files Browse the repository at this point in the history
We are doing this during the release.
  • Loading branch information
humitos authored Nov 22, 2024
1 parent 3442990 commit efab033
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
9 changes: 0 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ commands:
- checkout
- run: npm ci
- run: npm run build
- run:
name: Ensure built assets are up to date
command: |
if [[ `git status dist/ --porcelain` ]]
then
echo "ERROR: assets are out of date. Make sure to run 'npm run build' on your branch."
git status dist/ --porcelain
exit 1
fi

jobs:
checks:
Expand Down
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,3 @@ repos:
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: "^(dist/|public/|tests/__snapshots__/).*$"
- repo: local
hooks:
- id: check-build-assets
name: Ensure assets are current
description: Ensure that `npm run build` was run before commiting.
language: script
types_or: [css, javascript, svg, json]
pass_filenames: false
entry: .pre-commit/check-build-assets.sh
21 changes: 2 additions & 19 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,11 @@ localhost
Read the Docs
-------------

#. Run development server, ``npm run dev``.
#. Clone addons repository next to your ``readthedocs.org`` code.
#. Spin up Docker by running ``inv docker.up``.
#. Optional. Define ``USE_PROMOS=True`` if you wan to test EthicalAds addon.
#. Edit ``common/dockerfiles/force-readthedocs-addons.js`` to point to the development server:

.. code-block:: diff
diff --git a/dockerfiles/force-readthedocs-addons.js b/dockerfiles/force-readthedocs-addons.js
index 82a44c4..2b0d46d 100644
--- a/dockerfiles/force-readthedocs-addons.js
+++ b/dockerfiles/force-readthedocs-addons.js
@@ -15,7 +15,7 @@
// add "readthedocs-addons.js" inside the "<head>"
const addonsJs =
- '<script async type="text/javascript" src="/_/static/javascript/readthedocs-addons.js"></script>';
+ '<script async type="text/javascript" src="http://localhost:8000/readthedocs-addons.js"></script>';
// selectors we want to remove
// https://developers.cloudflare.com/workers/runtime-apis/html-rewriter/#selectors
#. Open any built documentation you already have in your local development instance.
#. Edit any file from addons to see the changes immediately.

.. tip::

Expand Down

0 comments on commit efab033

Please sign in to comment.