The chemical reactions and pathways resulting in the formation of a nucleobase-containing small molecule: a nucleobase, a nucleoside, or a nucleotide.
nucleobase, nucleoside and nucleotide biosynthesis