Quellcode durchsuchen

Delete the website and references (#782)

.pre-commit-config.yaml and proposals/p0540.md (linking goals.html, fixed to goals.md link) are the two references I could find.

The site is disabled, though; I think it makes the most sense to delete supporting code, and in the future hopefully we can use GH pages to publish.
Jon Meow vor 4 Jahren
Ursprung
Commit
d550256c93
7 geänderte Dateien mit 7 neuen und 32 gelöschten Zeilen
  1. 1 8
      .pre-commit-config.yaml
  2. 1 5
      BUILD
  3. 0 9
      docs/BUILD
  4. 2 5
      proposals/BUILD
  5. 1 1
      proposals/p0540.md
  6. 2 3
      proposals/scripts/BUILD
  7. 0 1
      setup.cfg

+ 1 - 8
.pre-commit-config.yaml

@@ -19,11 +19,7 @@ repos:
       - id: check-executables-have-shebangs
       - id: check-merge-conflict
       - id: check-symlinks
-        exclude: |
-          (?x)^(
-              website/jekyll/site/_includes|
-              bazel-(clang-toolchain|execroot)
-          )$
+        exclude: ^bazel-(clang-toolchain|execroot)$
       - id: check-yaml
       - id: detect-private-key
       - id: end-of-file-fixer
@@ -71,7 +67,6 @@ repos:
               .bazelversion|
               compile_flags.txt|
               third_party/examples/.*/compile_flags.carbon.txt|
-              website/(firebase/.firebaserc|jekyll/(Gemfile.lock|theme/.*))|
               .*\.def|
               .*\.svg|
               .*/testdata/.*\.golden
@@ -83,7 +78,6 @@ repos:
     hooks:
       - id: codespell
         args: ['-I', '.codespell_ignore', '--uri-ignore-words-list', '*']
-        exclude: '^website/jekyll/Gemfile.lock$'
   - repo: local
     hooks:
       - id: executable-semantics-tests
@@ -116,7 +110,6 @@ repos:
     rev: bc48c541add1551be726f23c4294c773442341cb # frozen: v2.3.2
     hooks:
       - id: prettier
-        exclude: ^website/jekyll/theme/
   # Run linters last, as formatters and other checks may fix issues.
   - repo: https://gitlab.com/PyCQA/flake8
     rev: dcd740bc0ebaf2b3d43e59a0060d157c97de13f3 # frozen: 3.9.2

+ 1 - 5
BUILD

@@ -2,8 +2,4 @@
 # Exceptions. See /LICENSE for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-filegroup(
-    name = "website_content",
-    srcs = glob(["*"]),
-    visibility = ["//website/jekyll:__pkg__"],
-)
+# Empty stub.

+ 0 - 9
docs/BUILD

@@ -1,9 +0,0 @@
-# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
-# Exceptions. See /LICENSE for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-
-filegroup(
-    name = "website_content",
-    srcs = glob(["**/*.md"]),
-    visibility = ["//website/jekyll:__pkg__"],
-)

+ 2 - 5
proposals/BUILD

@@ -3,10 +3,7 @@
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
 filegroup(
-    name = "website_content",
+    name = "md_files",
     srcs = glob(["*.md"]),
-    visibility = [
-        "//proposals/scripts:__pkg__",
-        "//website/jekyll:__pkg__",
-    ],
+    visibility = ["//proposals/scripts:__pkg__"],
 )

+ 1 - 1
proposals/p0540.md

@@ -39,7 +39,7 @@ Remove `Void` from the Carbon design.
 ## Rationale based on Carbon's goals
 
 Eliminating `Void` will make Carbon code
-[easier to read, understand, and write](https://carbon-lang.dev/docs/project/goals.html#code-that-is-easy-to-read-understand-and-write).
+[easier to read, understand, and write](/docs/project/goals.md#code-that-is-easy-to-read-understand-and-write).
 The main advantage of `Void` is that it is recognizable and familiar to C++
 programmers. However, we haven't yet found any use cases where using `Void`
 results in clearer code, even to programmers transitioning from C++. In

+ 2 - 3
proposals/scripts/BUILD

@@ -7,13 +7,12 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
 py_library(
     name = "proposals",
     srcs = ["proposals.py"],
-    visibility = ["//website/jekyll:__pkg__"],
 )
 
 py_test(
     name = "proposals_test",
     srcs = ["proposals_test.py"],
-    data = ["//proposals:website_content"],
+    data = ["//proposals:md_files"],
     python_version = "PY3",
     deps = [":proposals"],
 )
@@ -27,7 +26,7 @@ py_binary(
 py_test(
     name = "new_proposal_test",
     srcs = ["new_proposal_test.py"],
-    data = ["//proposals:website_content"],
+    data = ["//proposals:md_files"],
     python_version = "PY3",
     deps = [":new_proposal"],
 )

+ 0 - 1
setup.cfg

@@ -4,7 +4,6 @@
 
 [flake8]
 max-line-length = 80
-exclude = website/jekyll/build
 # E203: This warning is not PEP 8 compliant.
 # E402: Allow the pythonpath modifications before repo-local imports.
 # W503: flake8 v3.8.4 is inconsistent with black v20.8b1 (pre-commit run -a).