All Projects → cfug → dart.cn

cfug / dart.cn

Licence: other
Dart docs localization, get started from the wiki page here: https://github.com/cfug/dart.cn/wiki

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects
dart
5743 projects
ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to dart.cn

China
🇨🇳 一个轻巧的中国的地区、民族以及节假日信息的查询PHP库
Stars: ✭ 51 (-20.31%)
Mutual labels:  china, china-region
elecV2P-dei
elecV2P 说明文档、使用范例及问题交流
Stars: ✭ 171 (+167.19%)
Mutual labels:  documents
react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (-78.12%)
Mutual labels:  localization
MetadataRemover
Android App to remove images' metadata
Stars: ✭ 42 (-34.37%)
Mutual labels:  documents
www.mozilla.org
Localization of www.mozilla.org
Stars: ✭ 62 (-3.12%)
Mutual labels:  localization
odoo-th
Ready to use Odoo with OCA Thai localization modules
Stars: ✭ 29 (-54.69%)
Mutual labels:  localization
My.Extensions.Localization.Json
JSON Localization Resources
Stars: ✭ 50 (-21.87%)
Mutual labels:  localization
ingest-file
Ingestors extract the contents of mixed unstructured documents into structured (followthemoney) data.
Stars: ✭ 40 (-37.5%)
Mutual labels:  documents
GA SLAM
🚀 SLAM for autonomous planetary rovers with global localization
Stars: ✭ 40 (-37.5%)
Mutual labels:  localization
ros-vrep-slam
ROS and V-REP for Robot Mapping and Localization
Stars: ✭ 39 (-39.06%)
Mutual labels:  localization
DeepI2P
DeepI2P: Image-to-Point Cloud Registration via Deep Classification. CVPR 2021
Stars: ✭ 130 (+103.13%)
Mutual labels:  localization
I18N
I18N Library for .NET, and Delphi
Stars: ✭ 48 (-25%)
Mutual labels:  localization
Domino-English-Translation
🌏 Let's translate Domino, a Japanese MIDI editor!
Stars: ✭ 29 (-54.69%)
Mutual labels:  localization
android-studio-plugin
Integrate your Android project with Crowdin
Stars: ✭ 52 (-18.75%)
Mutual labels:  localization
guides
How we do things at OK GROW!
Stars: ✭ 16 (-75%)
Mutual labels:  documents
LocalizationService
Tools for localization Unity's UIText components
Stars: ✭ 22 (-65.62%)
Mutual labels:  localization
contiki-uwb
Contiki OS, Glossy and Crystal port for the DecaWave EVB1000 and DWM1001 platforms featuring the DW1000 UWB transceiver
Stars: ✭ 22 (-65.62%)
Mutual labels:  localization
go-localize
i18n (Internationalization and localization) engine written in Go, used for translating locale strings.
Stars: ✭ 45 (-29.69%)
Mutual labels:  localization
awesome-translations
😎 Awesome lists about Internationalization & localization stuff. l10n, g11n, m17n, i18n. Translations! 🌎🌍
Stars: ✭ 54 (-15.62%)
Mutual labels:  localization
china-ip-list
每小时更新中国IP范围列表,Update Mainland China ip‘s list in everyhour
Stars: ✭ 40 (-37.5%)
Mutual labels:  china

Dart The Dart language site (dart.dev)

Build Status SVG first-timers SVG

The https://dart.dev site, built with Jekyll and hosted on Firebase.

We welcome contributions, and we're first-timer friendly!

Getting started

Start by looking for an issue that catches your interest, or create an issue with your proposed change. Ask for the issue to be assigned to you.

To update this site, fork the repo, make your changes, and generate a pull request. For simple changes (such as to CSS and text), you probably don't need to build this site. Often you can make changes using the GitHub UI.

NOTE: If you clone this repo locally, see the instructions below on cloning with its submodule.

If your change involves code samples, adds/removes pages, or affects navigation, you'll need to build and test your work before submitting.

If you want or need to build, follow the steps below.

Help us improve these instructions! If you have any problems getting set up to build or performing the actual build, please edit this README or file an issue (or both).

Before you build this site

For changes beyond simple text and CSS tweaks, we recommend building the site.

1. Get the prerequisites

Install the following tools, if you don't have them already:

  • bash, the Bourne shell. These instructions assume you're using bash, and setup might not work if you use another shell.

  • GNU Make. On Windows the easiest way to install Make is choco install make using command prompt or powershell as an admin. Other options include using a subsystem.

  • Docker. We use Docker for local dev, tests, and building the site. Install it from https://docs.docker.com/get-docker/.

  • Firebase CLI, for hosting the site locally. One way to get this is to run npm install -g firebase-tools. For full setup details, read the Firebase CLI documentation.

2. Clone this repo and its submodules

Note: This repo has git submodules, which affects how you clone it. The GitHub documentation has general help on forking and cloning repos.

If you're not a member of the Dart organization, we recommend you create a fork of this repo under your own account, and then submit a PR from that fork.

Once you have a fork (or you're a Dart org member), choose one of the following submodule-cloning techniques:

  • Clone the repo and its submodule at the same time using the --recurse-submodules option:

    $ git clone --recurse-submodules https://github.com/dart-lang/site-www.git

    OR

  • If you've already cloned the repo without its submodule, then run this command from the repo root:

    $ git submodule update --init --recursive

Note: At any time during development you can use the git submodule command to refresh submodules:

$ git pull; git submodule update --init --recursive

Setting up your local environment and serve changes

  1. Optional: After cloning the repo and its submodules, create a branch for your changes:

    $ git checkout -b <BRANCH_NAME>
  2. If the Docker Desktop application isn't already running on your machine, start it. Look for the Docker status icon: if it has an exclamation point (!), then update Docker Desktop before proceeding.

  3. Run the initial local setup command:

    $ make setup
  4. Serve the site locally (via docker-compose):

    $ make up

    The site is generated, and then the development server runs in the Docker container, with the generated _site directory visible locally as a mirrored volume from inside the container.

  5. View your changes in the browser by navigating to http://localhost:4000.

    Note: Unless you're editing files under site-shared, you can safely ignore ERROR: directory is already being watched messages. For details, see #1363.

  6. Make your changes to the local repo.

    The site will rebuild and the browser will autoreload to reflect the changes.

    Tip: If you aren't seeing the changes you expect (e.g. src/_data), ctrl-C out of your running dev server and rebuild the site from scratch using the following commands:

    $ make down && make clean && make up
  7. Commit your changes to the branch and submit your PR.

    See Pre-push site checks

  8. When you've finished developing, shut down the Docker container:

    $ make down

Tip: To find additional commands, read the Makefile. For example, if you need to debug the Docker setup, you can run:

$ make run

Pre-push site checks

Checking documentation and example code

If you've made changes to this site's documentation and/or example code, and committed locally, then run the following command before pushing your work:

# Enter a running Docker container shell
make run

# Check/validate example code
tool/test.sh

# Check links for 404 errors
tool/check-links.sh

If these scripts report errors or warnings, then address those issues and rerun the above commands. Otherwise, you can push your changes.

Deploying to a staging site

You can deploy your local edits to a personal Firebase hosting staging site as follows:

  1. If you don't already have a Firebase project,

    • Navigate to the Firebase Console and create your own Firebase project (for example, dart-dev-staging).

    • Head back to your local repo shell and verify that you are logged in.

      $ firebase login
    • Ensure that your project exists and activate that project:

      $ firebase projects:list
      $ firebase use <your-project>
  2. Build the site via Docker:

    $ make build

    This will build the site and copy it to your local _site directory. If that directory previously existed, it will be replaced.

  3. Deploy to your activated Firebase project's default hosting site:

    $ FIREBASE_PROJECT=<your-project> make deploy

    TIP: Add your FIREBASE_PROJECT env var to your .env file and it will overwrite the default every time you deploy without specifying.

  4. Navigate to your PR on GitHub and update it with the location of the staged version, the names of your reviewers, and so on.

Creating and/or editing DartPad example code

Most of the code used to create DartPad examples is hosted on GitHub. However, this repo also contains some *.dart files responsible for DartPad example code.

Refresh DartPad HTML tooltips

Files that require DartPad HTML to be manually updated include instructions at the top that specify running:

$ tool/create_code_with_tooltips.dart

Follow the instructions in those files to refresh the appropriate code.

DartPad picker

The DartPad example picker must be manually compiled if changes are made. This will regenerate the associated JavaScript file in src/assets/dash/js:

$ tool/compile.sh

Dockerfile Maintenance

Dart SDK and Node PPA Checksum values

Since both the Dart SDK and Node PPA curl remote files, it's important to verify checksum values. Both installs use latest and lts respectively, so these files may be periodically updated. When this happens, local checksums may fail and This will break the Docker/Compose setup/build. You will see the relevant output in your shell e.g. DART CHECKSUM FAILED!.... When this happens, run the following command:

make run

make fetch-sums

This command will output the updated checksum values for both Node and Dart, and that output will be formatted similar or the same as what is currently in the Dockerfile. Copy this output and replace the relevant install code in the Dockerfile, then rerun your setup/build again.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].