Skip to content

Commit

Permalink
Merge pull request #1519 from cachix/do-not-modify-docs
Browse files Browse the repository at this point in the history
docs: add comment to not modify auto-generated docs
  • Loading branch information
domenkozar authored Oct 12, 2024
2 parents c1117e0 + d685a37 commit cdb19b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
set -e
output_file=docs/reference/options.md
options=$(nix build --accept-flake-config --no-pure-eval --extra-experimental-features 'flakes nix-command' --show-trace --print-out-paths --no-link '.#devenv-docs-options')
echo "# devenv.nix" > $output_file
echo "[comment]: # (DO NOT MODIFY. This file was generated by devenv-generate-doc-options.)" >> $output_file
echo "# devenv.nix" >> $output_file
echo >> $output_file
cat $options >> $output_file
# https://github.com/NixOS/nixpkgs/issues/224661
Expand All @@ -121,6 +122,8 @@
description = "Generate an example enabling every supported language.";
exec = ''
cat > examples/supported-languages/devenv.nix <<EOF
# DO NOT MODIFY.
# This file was generated bu devenv-generate-languages-example.
{ pkgs, ... }: {
# Enable all languages tooling!
Expand Down

0 comments on commit cdb19b3

Please sign in to comment.